Beispiel #1
0
 /// <summary>
 /// Divides a scalar by a vector.
 /// </summary>
 /// <param name="v">A <see cref="Vector3F"/> instance.</param>
 /// <param name="s">A scalar</param>
 /// <returns>A new <see cref="Vector3F"/> containing the quotient.</returns>
 /// <remarks>
 /// result[i] = s / v[i]
 /// </remarks>
 public static Vector3F operator/(float s, Vector3F v)
 {
     return(Vector3F.Divide(s, v));
 }
Beispiel #2
0
 /// <summary>
 /// Divides a scalar by a vector.
 /// </summary>
 /// <param name="vector">A <see cref="Vector3F"/> instance.</param>
 /// <param name="scalar">A scalar</param>
 /// <returns>A new <see cref="Vector3F"/> containing the quotient.</returns>
 /// <remarks>
 /// result[i] = scalar / vector[i]
 /// </remarks>
 public static Vector3F operator /(float scalar, Vector3F vector)
 {
     return(Vector3F.Divide(scalar, vector));
 }
Beispiel #3
0
 /// <summary>
 /// Divides a vector by a scalar.
 /// </summary>
 /// <param name="v">A <see cref="Vector3F"/> instance.</param>
 /// <param name="s">A scalar</param>
 /// <returns>A new <see cref="Vector3F"/> containing the quotient.</returns>
 /// <remarks>
 /// result[i] = v[i] / s;
 /// </remarks>
 public static Vector3F operator/(Vector3F v, float s)
 {
     return(Vector3F.Divide(v, s));
 }
Beispiel #4
0
 /// <summary>
 /// Divides a vector by a scalar.
 /// </summary>
 /// <param name="vector">A <see cref="Vector3F"/> instance.</param>
 /// <param name="scalar">A scalar</param>
 /// <returns>A new <see cref="Vector3F"/> containing the quotient.</returns>
 /// <remarks>
 /// result[i] = vector[i] / scalar;
 /// </remarks>
 public static Vector3F operator /(Vector3F vector, float scalar)
 {
     return(Vector3F.Divide(vector, scalar));
 }