Function fromEuler

  • Creates a quaternion from the given euler angle x, y, z using the provided intrinsic order for the conversion.

    Parameters

    • xAngleInRadians: number

      angle to rotate around X axis in radians.

    • yAngleInRadians: number

      angle to rotate around Y axis in radians.

    • zAngleInRadians: number

      angle to rotate around Z axis in radians.

    • order: RotationOrder

      order to apply euler angles

    • Optional dst: Quat

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

    Returns Quat

    A quaternion representing the same rotation as the euler angles applied in the given order