public static IEnumerable <Vector3> NewBezier(XInterpolate.Function ease, Vector3[] points, float duration) { IEnumerable <float> steps = XInterpolate.NewTimer(duration); return(XInterpolate.NewBezier <Vector3>(ease, points, new XInterpolate.ToVector3 <Vector3>(XInterpolate.Identity), duration, steps)); }
public static IEnumerator NewEase(XInterpolate.Function ease, Vector3 start, Vector3 end, float duration) { IEnumerable <float> driver = XInterpolate.NewTimer(duration); return(XInterpolate.NewEase(ease, start, end, duration, driver)); }
public static IEnumerable <Vector3> NewBezier(XInterpolate.Function ease, Transform[] nodes, float duration) { IEnumerable <float> steps = XInterpolate.NewTimer(duration); return(XInterpolate.NewBezier <Transform>(ease, nodes, new XInterpolate.ToVector3 <Transform>(XInterpolate.TransformDotPosition), duration, steps)); }