Function rotateX

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

    Type Parameters

    Parameters

    • q: BaseArgType

      quaternion to rotate

    • angleInRadians: number

      The angle by which to rotate

    • Optional dst: T

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

    Returns T

    A quaternion that is the result of a * b