searches the current version of every section · esc to close

21 Scenev0.1.41 → v0.1.42

Changed in v0.1.42 (2026-04-14): form metadata now inclued the owner and creator

+2 2
v0.1.41v0.1.42
2626
27### 21.02.01 Rotation and `Euler` Type27### 21.02.01 Rotation and `Euler` Type
2828
29Rotation can be represented by the type `Euler`, specifying the Euler angles as a 3-tuple $(x, y, z)$ in radians. The rotations are applied in the order of the $x$-axis, then the $y$-axis, then the $z$-axis. It can be represented as29Rotation can be represented by the type `Euler`, specifying the Euler angles as a 3-tuple $(x, y, z)$ in degree. The rotations are applied in the order of the $x$-axis, then the $y$-axis, then the $z$-axis. It can be represented as
30```ts30```ts
31type Euler = [number, number, number]31type Euler = [number, number, number]
32```32```
33where the three numbers correspond to rotation in radians around the $x$-axis, $y$-axis, and $z$-axis, in that order. For each rotation, a positive value means counterclockwise rotation. A zero rotation on all axes implies that the axes of the transformed coordinate align with those of the scene coordinate.33where the three numbers correspond to rotation in degree around the $x$-axis, $y$-axis, and $z$-axis, in that order. For each rotation, a positive value means counterclockwise rotation. A zero rotation on all axes implies that the axes of the transformed coordinate align with those of the scene coordinate.
3434
35Rotation on a plane can also be represented by an Euler angle as a single number. The rotation is applied around the up-axis of the plane. A `Euler2D` represents such data as35Rotation on a plane can also be represented by an Euler angle as a single number. The rotation is applied around the up-axis of the plane. A `Euler2D` represents such data as
36```ts36```ts