示例#1
0
 /// <summary>
 /// Multiplies a vector by a scalar.
 /// </summary>
 /// <param name="v">A <see cref="Vector4F"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A new <see cref="Vector4F"/> containing the result.</returns>
 public static Vector4F operator *(float s, Vector4F v)
 {
     return(Vector4F.Multiply(v, s));
 }
示例#2
0
 /// <summary>
 /// Multiplies a vector by a scalar.
 /// </summary>
 /// <param name="vector">A <see cref="Vector4F"/> instance.</param>
 /// <param name="scalar">A single-precision floating-point number.</param>
 /// <returns>A new <see cref="Vector4F"/> containing the result.</returns>
 public static Vector4F operator *(float scalar, Vector4F vector)
 {
     return(Vector4F.Multiply(vector, scalar));
 }