Method Euler
Euler(Single, Single, Single)
Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis (in that order).
Declaration
public static Quaternion Euler(float zaxis, float xaxis, float yaxis)
Parameters
Type | Name | Description |
---|---|---|
System.Single | zaxis | Z degrees. |
System.Single | xaxis | X degrees. |
System.Single | yaxis | Y degrees. |
Returns
Type | Description |
---|---|
Quaternion |
Euler(Vector3)
Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis (in that order).
Declaration
public static Quaternion Euler(Vector3 euler)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | euler | Euler angles in degrees. euler.X = around X axis, euler.Y = around Y axis, euler.Z = around Z axis |
Returns
Type | Description |
---|---|
Quaternion |