AtlatestRepositorysigil-geometry
1# Changelog
2
3All notable changes to **sigil-geometry** are documented in this file.
4
5The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8## [0.1.0] - 2026-09-25
9
10### Added
12- **vec2, vec3, vec4** as float32 bytevectors: arithmetic, dot and cross
13 products, length, normalize, lerp, min/max and tolerant comparison.
14- **mat3 and mat4**, column-major (the OpenGL convention): multiply,
15 transpose, determinant, inverse (#f for a singular matrix),
16 translation, scale, axis rotations, rotation about any axis, model
17 matrices from translation, rotation and scale, point, direction and
18 vec4 transforms, the normal matrix, and a std140-padded mat3 for
19 uniform blocks.
20- **Quaternions**: axis-angle, conversion to and from rotation matrices,
21 multiply, conjugate, inverse, slerp and nlerp, and vector rotation.
22- **Camera matrices** matching `gluPerspective`, `glOrtho` and
23 `gluLookAt`.
24- **Ray casts** against planes, boxes and triangles (with barycentric
25 weights for picking), plus plane and box helpers.
26- Every operation that produces a value has an allocation-free `!` form
27 whose destination may alias its inputs. Measured at zero allocations
28 per call on wasm and on bytecode, over 123 checks covering all 80
29 `!` forms and their other branches.
30- `scripts/check-targets`: the test suite and the allocation check on
31 bytecode, native ELF and wasm.
32- Tolerant comparisons (`vec3-approx=?`, `mat4-approx=?`,
33 `quat-same-rotation?` and the rest) that never accept NaN, written
34 around sigil 0.22.7's `<=`, `>=` and `=`, which answer #t for NaN.