Creates a new LogQuaternion instance.
Float32Array containing the x, y, z components
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
fromCreates a LogQuaternion from individual x, y, z component values.
The x component
The y component
The z component
A new Quaternion instance (note: this should return LogQuaternion)
Static
fromCreates a LogQuaternion from an array by copying the first 3 values.
Array of numbers (only first 3 elements are used)
A new Quaternion instance (note: this should return LogQuaternion)
Static
fromCreates a LogQuaternion from a 3-element array by copying the values.
Array of 3 numbers representing x, y, z components
A new Quaternion instance (note: this should return LogQuaternion)
Static
fromCreates a LogQuaternion by copying from another LogQuaternion.
The source LogQuaternion to copy from
A new Quaternion instance (note: this should return LogQuaternion)
Static
fromConverts a regular quaternion to its logarithmic form. Uses the formula: log(q) = (θ/sin(θ)) * (x, y, z) where θ = acos(w)
The source quaternion to convert
A new LogQuaternion representing the logarithm of the input quaternion
Static
fromCreates a LogQuaternion from a 3D vector by copying its components.
The source IVector3 to copy from
A new Quaternion instance (note: this should return LogQuaternion)
Static
fromCreates a LogQuaternion from an existing Float32Array.
Float32Array containing the x, y, z components
A new LogQuaternion instance
Represents a logarithm of a quaternion, which provides a more compact representation for quaternion interpolation and mathematical operations. A log quaternion stores only the x, y, z components as the w component is implicitly 1.