munum - v0.3.0
    Preparing search index...

    Interface IQuat

    Quaternion interface.

    interface IQuat {
        length: 4;
        dot(rhs: IQuat): number;
        invert(): boolean;
        lerp(rhs: IQuat, t: number): this;
        mul(rhs: IQuat): this;
        normalize(): boolean;
        rotate(v: Vec<3>): Vec<3>;
        slerp(rhs: IQuat, t: number): this;
    }

    Implemented by

    Index
    length: 4

    Returns the length of Quat.

    • Computes the dot product of this with RHS.

      Parameters

      Returns number

    • Inverts this.

      Returns boolean

    • Computes the linear interpolation between this and RHS.

      Parameters

      Returns this

    • Assigns the Hamilton product with RHS to this.

      Parameters

      Returns this

    • Normalizes this.

      Returns boolean

    • Rotates given 3D vector mutably using this.

      Parameters

      Returns Vec<3>

    • Computes the shperic interpolation between this and RHS.

      Parameters

      Returns this