On this page

Function fromEuler

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

    Parameters

    • out: quat

      the receiving quaternion

    • x: number

      Angle to rotate around X axis in degrees.

    • y: number

      Angle to rotate around Y axis in degrees.

    • z: number

      Angle to rotate around Z axis in degrees.

    • Optionalorder: "xyz" | "xzy" | "yxz" | "yzx" | "zxy" | "zyx"

      Intrinsic order for conversion, default is zyx.

    Returns quat

    out

Was this helpful?
SDK JS
Reference
fromEuler