Home | History | Annotate | Download | only in Intersection

Lines Matching full:point2

21 Point2  NearestPointOnCurve();
23 static Point2 *ConvertToBezierForm();
27 static Point2 Bezier();
46 static Point2 bezCurve[4] = { /* A cubic Bezier curve */
52 static Point2 arbPoint = { 3.5, 2.0 }; /*Some arbitrary point*/
53 Point2 pointOnCurve; /* Nearest point on the curve */
70 Point2 NearestPointOnCurve(P, V)
71 Point2 P; /* The user-supplied point */
72 Point2 *V; /* Control points of cubic Bezier */
74 Point2 *w; /* Ctl pts for 5th-degree eqn */
89 Point2 p;
101 (Point2 *)NULL, (Point2 *)NULL);
119 return (Bezier(V, DEGREE, t, (Point2 *)NULL, (Point2 *)NULL));
129 static Point2 *ConvertToBezierForm(P, V)
130 Point2 P; /* The point to find t for */
131 Point2 *V; /* The control points */
137 Point2 *w; /* Ctl pts of 5th-degree curve */
167 w = (Point2 *)malloc((unsigned)(W_DEGREE+1) * sizeof(Point2));
195 Point2 *w; /* The control points */
201 Point2 Left[W_DEGREE+1], /* New left and right */
254 Point2 *V; /* Control pts of Bezier curve */
279 Point2 *V; /* Control points */
390 Point2 *V; /* Control points */
425 static Point2 Bezier(V, degree, t, Left, Right)
427 Point2 *V; /* Control pts */
429 Point2 *Left; /* RETURN left half ctl pts */
430 Point2 *Right; /* RETURN right half ctl pts */
433 Point2 Vtemp[W_DEGREE+1][W_DEGREE+1];