Creates a new LogQuaternionD instance.
The typed array containing the x, y, z components
Internal typed array storage for logarithmic quaternion components (Float32Array or Float64Array)
Gets the class name identifier.
The string 'LogQuaternion'
Gets the w component of the log quaternion. Always returns 1 for log quaternions.
Always returns 1
Gets the x component of the log quaternion.
The x component value
Gets the y component of the log quaternion.
The y component value
Gets the z component of the log quaternion.
The z component value
Static_Creates a log quaternion from individual x, y, z component values.
The x component
The y component
The z component
The typed array constructor to use
A new log quaternion
Static_Creates a log quaternion from an array by copying the first 3 values.
Array of numbers (only first 3 elements are used)
The typed array constructor to use
A new log quaternion
Static_Creates a log quaternion from a 3-element array by copying the values.
Array of 3 numbers representing x, y, z components
The typed array constructor to use
A new log quaternion
Static_Creates a log quaternion by copying from another log quaternion.
The source log quaternion to copy from
The typed array constructor to use
A new log quaternion
Static_Converts a regular quaternion to its logarithmic form.
Uses the formula log(q) = (θ / sin(θ)) * (x, y, z) where θ = acos(w).
When θ is 0 (identity rotation) the result is a zero log quaternion. When
θ is close to π the logarithm is not representable and a zero log
quaternion is returned instead of Infinity/NaN.
The source quaternion to convert
The typed array constructor to use
A new log quaternion representing the logarithm of the input quaternion
Static_Creates a log quaternion from a 3D vector by copying its components.
The source vector to copy from
The typed array constructor to use
A new log quaternion
Static_Creates a log quaternion that directly uses the given typed array (no copy).
Typed array containing the x, y, z components
The typed array constructor to use
A new log quaternion
StaticfromCreates a log quaternion from individual x, y, z component values.
StaticfromCreates a log quaternion from an array by copying the first 3 values.
StaticfromCreates a log quaternion from a 3-element array by copying the values.
StaticfromCreates a log quaternion by copying from another log quaternion.
StaticfromConverts a regular quaternion to its logarithmic form.
StaticfromCreates a log quaternion from a 3D vector by copying its components.
StaticfromCreates a log quaternion that directly uses the given Float64Array (no copy).
Logarithm of a quaternion with 64-bit float components. Use this implementation when higher numerical precision is required.