/// <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)); }
/// <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)); }
/// <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)); }