/// <summary> /// Multiplies a vector by a scale factor. /// </summary> /// <param name="value2">The vector to scale.</param> /// <param name="value1">The scale factor.</param> /// <returns>Returns the scaled vector.</returns> #region public static JVector operator *(FP value1, JVector value2) public static TSVector4 operator *(FP value1, TSVector4 value2) { TSVector4 result; TSVector4.Multiply(ref value2, value1, out result); return(result); }
/// <summary> /// Multiply a vector with a factor. /// </summary> /// <param name="value1">The vector to multiply.</param> /// <param name="scaleFactor">The scale factor.</param> /// <returns>Returns the multiplied vector.</returns> #region public static JVector Multiply(JVector value1, FP scaleFactor) public static TSVector4 Multiply(TSVector4 value1, FP scaleFactor) { TSVector4 result; TSVector4.Multiply(ref value1, scaleFactor, out result); return(result); }