lib/math
Math utilities including Vector2, Vector3, and Color classes with immutable operations.
Classes
| Class | Description |
|---|---|
| Color | - |
| DivisionByZeroException | An exception thrown when a division by zero occurs. |
| ImmutableVectorException | An exception thrown when attempting to mutate an immutable vector. |
| OutOfBoundsException | An exception thrown when an index is out of bounds. |
| Vector2 | A 2D vector. |
| Vector3 | A 3D vector. |
Functions
| Function | Description |
|---|---|
| color | Creates a color from RGBA components. |
| vec2 | Creates a 2D vector from coordinates. |
| vec3 | Creates a 3D vector from coordinates. |