Click or drag to resize
DigitalRuneQuaternionFLn Method (QuaternionF)
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 QuaternionF Ln(
	QuaternionF quaternion
)

Parameters

quaternion
Type: DigitalRune.Mathematics.AlgebraQuaternionF
The quaternion.

Return Value

Type: QuaternionF
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