rotate(
x: $xAngle,
y: $yAngle,
z: $zAngle
)
Creates a rotation matrix that rotates around the given values, first around the z-axis, then around the y-axis and then around the x-axis
| Parameter Name | Type | Type Description | Mandatory | Default |
|---|---|---|---|---|
| x | double | Degree in radians by which to rotate around the x-axis: x \in [0, 2*\pi] | no | 0 |
| y | double | Degree in radians around which the y-axis is to be rotated: y \in [0, 2*\pi] | no | 0 |
| z | double | Degree in radians by which to rotate around the z-axis: z \in [0, 2*\pi] | no | 0 |
Type: `tl.threed.core:Transformation`
rotate(Math.PI, Math.PI, Math.Pi/2);
Output: A transformation that first rotates an object by 90° around the z-axis and then by 180° on the y-axis and the x-axis.