searches the current version of every section · esc to close

26.04 Boundary Module and Tile Modulev0.1.26 → v0.1.27

Changed in v0.1.27 (2026-04-02): section 26.04 boundary now simply use the 2D coord

+3 12
v0.1.26v0.1.27
1# 26.04 Boundary Module and Tile Module1# 26.04 Boundary Module and Tile Module
22
3## 26.04.01 `Coordinate2D` and `Euler2D` Types3## 26.04.01 Boundary Module
44
5The 2-dimensional coordinate and rotation are represented by the types `Coordinate2D` and `Euler2D`, following the same conventions as the 3-dimensional ones defined in [[21-Scene]]. These types are defined as
6```ts
7type Coordinate2D = [number, number]
8type Euler2D = number
9```
10where `Coordinate2D` represents the coordinate $(x, y)$, in that order, and a positive `Euler2D` value means counterclockwise rotation.
11
12## 26.04.02 Boundary Module
13
14The Boundary module modifies the scene by introducing a new member in `FormProperties`, defining a horizontal boundary of the scene.5The Boundary module modifies the scene by introducing a new member in `FormProperties`, defining a horizontal boundary of the scene.
156
16The new member in `FormProperties` is defined as7The new member in `FormProperties` is defined as
39- `halfWidth` is REQUIRED, and its value MUST be a `number`. It represents half the width of the rectangle, aligned with the $x$-axis at rotation 0.30- `halfWidth` is REQUIRED, and its value MUST be a `number`. It represents half the width of the rectangle, aligned with the $x$-axis at rotation 0.
40- `halfLength` is REQUIRED, and its value MUST be a `number`. It represents half the length of the rectangle, aligned with the $y$-axis at rotation 0.31- `halfLength` is REQUIRED, and its value MUST be a `number`. It represents half the length of the rectangle, aligned with the $y$-axis at rotation 0.
4132
42## 26.04.03 Tile Module33## 26.04.02 Tile Module
4334
44The Tile module modifies the scene by introducing three new members in `FormProperties`, defining a tiled horizontal boundary of the scene.35The Tile module modifies the scene by introducing three new members in `FormProperties`, defining a tiled horizontal boundary of the scene.
4536
6657
67When used with the Category module, the artifact that can be used as value of `tileModel` MUST use `tile` as its artifact category.58When used with the Category module, the artifact that can be used as value of `tileModel` MUST use `tile` as its artifact category.
6859
69## 26.04.04 Horizontal Boundary of the Scene60## 26.04.03 Horizontal Boundary of the Scene
7061
71A horizontal boundary of the scene is defined by a list of oriented rectangles, commonly referred to as oriented bounding boxes (OBBs), as defined in [[26.04-Boundary-Module-and-Tile-Module#26.02.02 Boundary Module]], lying on the ground plane. The union of the specified list of OBBs defines the inside of the scene, and any point that does not lie within this union is considered outside of the scene. The line where the outside and the inside of the scene meet is the scene boundary.62A horizontal boundary of the scene is defined by a list of oriented rectangles, commonly referred to as oriented bounding boxes (OBBs), as defined in [[26.04-Boundary-Module-and-Tile-Module#26.02.02 Boundary Module]], lying on the ground plane. The union of the specified list of OBBs defines the inside of the scene, and any point that does not lie within this union is considered outside of the scene. The line where the outside and the inside of the scene meet is the scene boundary.
7263