Пример #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);
        }
Пример #2
0
 public Vector3 TangentAt(float t)
 {
     return(BezierUtility.BezierTangent(
                start, startTangent, endTangent, end, t));
 }