rhodonite
    Preparing search index...

    Class MutableQuaternion

    A mutable quaternion class that extends the immutable Quaternion class. Provides methods for quaternion operations that modify the instance in place. Quaternions are used to represent rotations in 3D space and are particularly useful for avoiding gimbal lock and providing smooth interpolations.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _v: Float32Array<ArrayBufferLike> = ...

    Internal typed array storage for quaternion components [x, y, z, w].

    Accessors

    • get compositionType(): CompositionTypeClass<"VEC4">

      Gets the composition type for this quaternion class.

      Returns CompositionTypeClass<"VEC4">

      CompositionType.Vec4 indicating this is a 4-component vector

    Methods

    • Calculates the dot product between this quaternion and another quaternion. The dot product of two quaternions gives a scalar value that represents the cosine of half the angle between them when both quaternions are unit quaternions.

      Parameters

      • quat: IQuaternion

        The quaternion to compute the dot product with

      Returns number

      The dot product result