Click or drag to resize
DigitalRuneQuaternionDLn Method (QuaternionD)
Calculates the natural logarithm.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static QuaternionD Ln(
	QuaternionD quaternion
)

Parameters

quaternion
Type: DigitalRune.Mathematics.AlgebraQuaternionD
The quaternion.

Return Value

Type: QuaternionD
The natural logarithm ln(q).
Exceptions
ExceptionCondition
MathematicsException The given quaternion is not a unit quaternion.
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