Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Identity: ReadonlyQuat

Functions

  • Calculates the W component of a quat from the X, Y, and Z components. Assumes that quaternion is 1 unit in length. Any existing W component will be ignored.

    Parameters

    Returns <internal>.Quat

  • Calculates the conjugate of a quat If the quaternion is normalized, this function is faster than quat.inverse and produces the same result.

    Parameters

    Returns <internal>.Quat

  • Parameters

    • x: number
    • y: number
    • z: number
    • w: number

    Returns <internal>.Quat

  • Returns whether or not the quaternions have approximately the same elements in the same position.

    Parameters

    Returns boolean

  • Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)

    Parameters

    Returns boolean

  • Creates a quaternion from the given 3x3 rotation matrix.

    NOTE: The resultant quaternion is not normalized, so you should be sure to renormalize the quaternion yourself where necessary.

    Parameters

    Returns <internal>.Quat

  • Gets the rotation axis and angle for a given quaternion. If a quaternion is created with setAxisAngle, this method will return the same values as providied in the original parameter list OR functionally equivalent values. Example: The quaternion formed by axis [0, 0, 1] and angle -90 is the same as the quaternion formed by [0, 0, 1] and 270. This method favors the latter.

    Parameters

    Returns number

  • Parameters

    Returns boolean

  • Returns <internal>.Quat

  • Parameters

    Returns <internal>.Quat

  • Parameters

    Returns void

  • Parameters

    Returns string

  • Returns <internal>.Quat

Generated using TypeDoc