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.41 | v0.1.42 | ||
|---|---|---|---|
| 26 | 26 | ||
| 27 | ### 21.02.01 Rotation and `Euler` Type | 27 | ### 21.02.01 Rotation and `Euler` Type |
| 28 | 28 | ||
| 29 | Rotation 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 as | 29 | Rotation 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 | ```ts | 30 | ```ts |
| 31 | type Euler = [number, number, number] | 31 | type Euler = [number, number, number] |
| 32 | ``` | 32 | ``` |
| 33 | where 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. | 33 | where 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. |
| 34 | 34 | ||
| 35 | Rotation 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 | 35 | Rotation 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 | ```ts | 36 | ```ts |