/// <summary>
        /// Interpolate between two verctors by InterpolationMode mode
        /// </summary>
        public static Vector3 V3(Vector3 v1, Vector3 v2, float t, InterpolationMode mode)
        {
            float interpT = Interp.Float(t, mode);

            return(((1 - interpT) * v1) + (interpT * v2));
        }
Exemple #2
0
        public static Vector3 V3(Vector3 v1, Vector3 v2, float t, InterpolationMode mode)
        {
            float num = Interp.Float(t, mode);

            return((1f - num) * v1 + num * v2);
        }