/// <summary> /// Generates info about an interpolation along the given spline. /// </summary> static public void GetUpdateInfo(this ISpline inSpline, float inPercent, SplineLerp inLerpMethod, Curve inSegmentEase, out SplineUpdateInfo outInfo) { outInfo.Spline = inSpline; outInfo.Percent = inSpline.TransformPercent(inPercent, inLerpMethod); outInfo.Point = inSpline.GetPoint(outInfo.Percent, inSegmentEase); outInfo.Direction = inSpline.GetDirection(outInfo.Percent, inSegmentEase); }