示例#1
0
 /// <summary>
 /// Finds the closest point to the bezier
 /// </summary>
 /// <param name="pt">Point to evaluate</param>
 /// <returns></returns>
 public NearestPointResult GetClosestPoint(Vector2 pt)
 {
     return(BezierRootFinder.NearestPointOnCurve(new Vector2[] { p0, p1, p2, p3 }, pt));
 }
 /// <summary>
 /// Finds the closest point to the bezier
 /// </summary>
 /// <param name="pt">Point to evaluate</param>
 /// <returns></returns>
 public NearestPointResult GetClosestPoint(Coordinates pt)
 {
     return(BezierRootFinder.NearestPointOnCurve(new Coordinates[] { p0, p1, p2, p3 }, pt));
 }