| QuaternionFLn Method (QuaternionF) |
Calculates the natural logarithm.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static QuaternionF Ln(
QuaternionF quaternion
)
Public Shared Function Ln (
quaternion As QuaternionF
) As QuaternionF
public:
static QuaternionF Ln(
QuaternionF quaternion
)
static member Ln :
quaternion : QuaternionF -> QuaternionF
Parameters
- quaternion
- Type: DigitalRune.Mathematics.AlgebraQuaternionF
The quaternion.
Return Value
Type:
QuaternionFThe natural logarithm ln(
q).
Exceptions Remarks Important: This method requires that the quaternion is a unit quaternion.
The natural logarithm of a quaternion q is defines as:
ln(q) = ln(cos(θ) + usin(θ))
= ln(euθ) = uθ
The result is returned as a quaternion with the form: (0, uθ)
See Also