rhodonite
    Preparing search index...

    Class LogQuaternion

    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.

    Implements

    Index

    Constructors

    Properties

    _v: Float32Array

    Internal Float32Array storage for logarithmic quaternion components

    Accessors

    Methods

    • Creates a LogQuaternion from individual x, y, z component values.

      Parameters

      • x: number

        The x component

      • y: number

        The y component

      • z: number

        The z component

      Returns Quaternion

      A new Quaternion instance (note: this should return LogQuaternion)

    • Creates a LogQuaternion from an array by copying the first 3 values.

      Parameters

      • array: number[]

        Array of numbers (only first 3 elements are used)

      Returns Quaternion

      A new Quaternion instance (note: this should return LogQuaternion)