Beispiel #1
0
        /// <summary>
        /// Get the easing value between two vectors
        /// </summary>
        /// <param name="start">The start vector</param>
        /// <param name="end">The end vector</param>
        /// <param name="progress">The progress between the two vectors</param>
        /// <returns>The interpolated vector between the given two</returns>
        public Vector3 InterpolateVector(Vector3 start, Vector3 end, float progress)
        {
            Tuple <float, float, float> r = MtaShared.InterpolateBetween(start.X, start.Y, start.Z, end.X, end.Y, end.Z, progress, Name, Period, Amplitude, Overshoot);

            return(new Vector3(r.Item1, r.Item2, r.Item3));
        }