GetTangentOnCubicCurve() public static method

public static GetTangentOnCubicCurve ( float time, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
time float
startPoint BezierPoint3D
endPoint BezierPoint3D
return UnityEngine.Vector3
示例#1
0
        public Vector3 GetTangent(float time)
        {
            BezierPoint3D startPoint;
            BezierPoint3D endPoint;
            float         timeRelativeToSegment;

            this.GetCubicSegment(time, out startPoint, out endPoint, out timeRelativeToSegment);

            return(BezierCurve3D.GetTangentOnCubicCurve(timeRelativeToSegment, startPoint, endPoint));
        }