Function rotateX

  • Rotates the given quaternion around the X axis by the given angle.

    Parameters

    • q: Quat

      quaternion to rotate

    • angleInRadians: number

      The angle by which to rotate

    • Optional dst: Quat

      quaternion to hold result. If not passed in a new one is created.

    Returns Quat

    A quaternion that is the result of a * b