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