Lines Matching refs:against_dir
873 typedef void cap_func(Geom::PathBuilder& res, Geom::Path const& with_dir, Geom::Path const& against_dir, double width);
875 void flat_cap(Geom::PathBuilder& res, Geom::Path const&, Geom::Path const& against_dir, double)
877 res.lineTo(against_dir.initialPoint());
880 void round_cap(Geom::PathBuilder& res, Geom::Path const&, Geom::Path const& against_dir, double width)
882 res.arcTo(width / 2., width / 2., 0., true, false, against_dir.initialPoint());
885 void square_cap(Geom::PathBuilder& res, Geom::Path const& with_dir, Geom::Path const& against_dir, double width)
889 Geom::Point normal_2 = -against_dir[0].unitTangentAt(0.);
891 res.lineTo(against_dir.initialPoint() + normal_2*width);
892 res.lineTo(against_dir.initialPoint());
895 void peak_cap(Geom::PathBuilder& res, Geom::Path const& with_dir, Geom::Path const& against_dir, double width)
899 Geom::Point normal_2 = -against_dir[0].unitTangentAt(0.);
900 Geom::Point midpoint = ((with_dir.finalPoint() + normal_1*width) + (against_dir.initialPoint() + normal_2*width)) * 0.5;
902 res.lineTo(against_dir.initialPoint());
915 Geom::Path against_dir = half_outline(input.reversed(), width/2., miter, join);
937 cf(res, with_dir, against_dir, width);
940 res.moveTo(against_dir.initialPoint());
943 res.append(against_dir);
946 cf(res, against_dir, with_dir, width);