Function fromEuler
- fromEuler(
out: quat,
x: number,
y: number,
z: number,
order?: "xyz" | "xzy" | "yxz" | "yzx" | "zxy" | "zyx",
): quatParameters
- 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
- out: quat
Was this helpful?
Creates a quaternion from the given euler angle x, y, z using the provided intrinsic order for the conversion.