Interface IQuat

Quaternion interface.

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

Implemented by

Properties

length: 4

Returns the length of Quat.

Methods

  • 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

Generated using TypeDoc