public static IEnumerable <Vector3> NewBezier(XInterpolate.Function ease, Vector3[] points, int slices) { IEnumerable <float> steps = XInterpolate.NewCounter(0, slices + 1, 1); return(XInterpolate.NewBezier <Vector3>(ease, points, new XInterpolate.ToVector3 <Vector3>(XInterpolate.Identity), (float)(slices + 1), steps)); }
public static IEnumerable <Vector3> NewBezier(XInterpolate.Function ease, Transform[] nodes, int slices) { IEnumerable <float> steps = XInterpolate.NewCounter(0, slices + 1, 1); return(XInterpolate.NewBezier <Transform>(ease, nodes, new XInterpolate.ToVector3 <Transform>(XInterpolate.TransformDotPosition), (float)(slices + 1), steps)); }
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 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)); }