Lines Matching refs:with_dir
873 typedef void cap_func(Geom::PathBuilder& res, Geom::Path const& with_dir, Geom::Path const& against_dir, double width);
885 void square_cap(Geom::PathBuilder& res, Geom::Path const& with_dir, Geom::Path const& against_dir, double width)
888 Geom::Point normal_1 = -Geom::unitTangentAt(Geom::reverse(with_dir.back().toSBasis()), 0.);
890 res.lineTo(with_dir.finalPoint() + normal_1*width);
895 void peak_cap(Geom::PathBuilder& res, Geom::Path const& with_dir, Geom::Path const& against_dir, double width)
898 Geom::Point normal_1 = -Geom::unitTangentAt(Geom::reverse(with_dir.back().toSBasis()), 0.);
900 Geom::Point midpoint = ((with_dir.finalPoint() + normal_1*width) + (against_dir.initialPoint() + normal_2*width)) * 0.5;
914 Geom::Path with_dir = half_outline(input, width/2., miter, join);
917 res.moveTo(with_dir[0].initialPoint());
918 res.append(with_dir);
937 cf(res, with_dir, against_dir, width);
946 cf(res, against_dir, with_dir, width);