Lines Matching refs:pts
24 void cubicEndPoints(const Cubic& pts) {
25 cubicEndPoints(pts, 0, 3);
28 void cubicEndPoints(const Cubic& pts, int s, int e) {
29 a = approximately_pin(pts[s].y - pts[e].y);
30 b = approximately_pin(pts[e].x - pts[s].x);
31 c = pts[s].x * pts[e].y - pts[e].x * pts[s].y;
34 void lineEndPoints(const _Line& pts) {
35 a = approximately_pin(pts[0].y - pts[1].y);
36 b = approximately_pin(pts[1].x - pts[0].x);
37 c = pts[0].x * pts[1].y - pts[1].x * pts[0].y;
40 void quadEndPoints(const Quadratic& pts) {
41 quadEndPoints(pts, 0, 2);
44 void quadEndPoints(const Quadratic& pts, int s, int e) {
45 a = approximately_pin(pts[s].y - pts[e].y);
46 b = approximately_pin(pts[e].x - pts[s].x);
47 c = pts[s].x * pts[e].y - pts[e].x * pts[s].y;
67 void cubicDistanceY(const Cubic& pts, Cubic& distance) const {
71 distance[index].y = a * pts[index].x + b * pts[index].y + c;
75 void quadDistanceY(const Quadratic& pts, Quadratic& distance) const {
79 distance[index].y = a * pts[index].x + b * pts[index].y + c;
83 double controlPtDistance(const Cubic& pts, int index) const {
85 return a * pts[index].x + b * pts[index].y + c;
88 double controlPtDistance(const Quadratic& pts) const {
89 return a * pts[1].x + b * pts[1].y + c;