Lines Matching defs:pts
110 BezierCurve::BezierCurve(std::vector<Point> const &pts)
111 : inner(pts)
113 if (pts.size() < 2) {
139 std::vector<Point> pts = controlPoints();
140 return bezier_length(pts[0], pts[1], pts[2], tolerance);
144 std::vector<Point> pts = controlPoints();
145 return bezier_length(pts[0], pts[1], pts[2], pts[3], tolerance);
254 BezierCurve *BezierCurve::create(std::vector<Point> const &pts)
256 switch (pts.size()) {
262 return new LineSegment(pts[0], pts[1]);
264 return new QuadraticBezier(pts[0], pts[1], pts[2]);
266 return new CubicBezier(pts[0], pts[1], pts[2], pts[3]);
268 return new BezierCurve(pts);