Example #1
0
        public Vector3 ClosestPoint(Vector3 point, out float t, float sqrError = 0.001f)
        {
            Vector3 closest = BezierUtility.ClosestPointOnCurve(
                point,
                start, end, startTangent, endTangent,
                out t, sqrError);

            return(closest);
        }
Example #2
0
 public Vector3 TangentAt(float t)
 {
     return(BezierUtility.BezierTangent(
                start, startTangent, endTangent, end, t));
 }