Example #1
0
 /// <summary>
 /// Subtracts a scalar from a vector.
 /// </summary>
 /// <param name="v">A <see cref="SLVec3f"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A new <see cref="SLVec3f"/> instance containing the difference.</returns>
 /// <remarks>
 /// result[i] = m_v[i] - s
 /// </remarks>
 public static SLVec3f operator-(SLVec3f v, float s)
 {
     return(SLVec3f.Subtract(v, s));
 }
Example #2
0
 /// <summary>
 /// Subtracts a vector from a scalar.
 /// </summary>
 /// <param name="v">A <see cref="SLVec3f"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A new <see cref="SLVec3f"/> instance containing the difference.</returns>
 /// <remarks>
 /// result[i] = s - m_v[i]
 /// </remarks>
 public static SLVec3f operator-(float s, SLVec3f v)
 {
     return(SLVec3f.Subtract(s, v));
 }
Example #3
0
 /// <summary>
 /// Subtracts a vector from a vector.
 /// </summary>
 /// <param name="u">A <see cref="SLVec3f"/> instance.</param>
 /// <param name="v">A <see cref="SLVec3f"/> instance.</param>
 /// <returns>A new <see cref="SLVec3f"/> instance containing the difference.</returns>
 /// <remarks>
 ///	result[i] = m_v[i] - w[i].
 /// </remarks>
 public static SLVec3f operator-(SLVec3f u, SLVec3f v)
 {
     return(SLVec3f.Subtract(u, v));
 }