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