示例#1
0
 /// <summary>
 /// Multiplies a quaternion by a scalar.
 /// </summary>
 /// <param name="q">A <see cref="QuaternionF"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A <see cref="QuaternionF"/> instance to hold the result.</returns>
 public static QuaternionF operator*(QuaternionF q, float s)
 {
     return(QuaternionF.Multiply(q, s));
 }
示例#2
0
 /// <summary>
 /// Divides a scalar by a quaternion.
 /// </summary>
 /// <param name="q">A <see cref="QuaternionF"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A <see cref="QuaternionF"/> instance to hold the result.</returns>
 public static QuaternionF operator/(float s, QuaternionF q)
 {
     return(QuaternionF.Multiply(q, 1 / s));
 }
示例#3
0
 /// <summary>
 /// Multiplies quaternion <paramref name="a"/> by quaternion <paramref name="b"/>.
 /// </summary>
 /// <param name="a">A <see cref="QuaternionF"/> instance.</param>
 /// <param name="b">A <see cref="QuaternionF"/> instance.</param>
 /// <returns>A new <see cref="QuaternionF"/> containing the result.</returns>
 public static QuaternionF operator*(QuaternionF a, QuaternionF b)
 {
     return(QuaternionF.Multiply(a, b));
 }