format
typescript
Quaternion.FromEulerXYZ(x, y, z)class: Quaternion
description
Converts a set of Euler angles to a quaternion and returns it.
The rotation is applied in the order of rotating around the z-axis, then the y-axis, and finally the x-axis.
parameter
| param_name | type | description |
|---|---|---|
| x | number | The angle in degrees around the x-axis. |
| y | number | The angle in degrees around the y-axis. |
| z | number | The angle in degrees around the z-axis. |
return
| type | description |
|---|---|
Quaternion | The quaternion representing the rotation. |
code example
typescript
function QuaternionTest (){
let rotation = Quaternion.FromEulerXYZ(1,2,3);
}