AtlatestRenderedmarkdown
sigil-geometry / treeCHANGELOG.md
Readme
Changelog
All notable changes to sigil-geometry are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.1.0] - 2026-09-25
Added
- vec2, vec3, vec4 as float32 bytevectors: arithmetic, dot and cross products, length, normalize, lerp, min/max and tolerant comparison.
- mat3 and mat4, column-major (the OpenGL convention): multiply, transpose, determinant, inverse (#f for a singular matrix), translation, scale, axis rotations, rotation about any axis, model matrices from translation, rotation and scale, point, direction and vec4 transforms, the normal matrix, and a std140-padded mat3 for uniform blocks.
- Quaternions: axis-angle, conversion to and from rotation matrices, multiply, conjugate, inverse, slerp and nlerp, and vector rotation.
- Camera matrices matching
gluPerspective,glOrthoandgluLookAt. - Ray casts against planes, boxes and triangles (with barycentric weights for picking), plus plane and box helpers.
- Every operation that produces a value has an allocation-free
!form whose destination may alias its inputs. Measured at zero allocations per call on wasm and on bytecode, over 123 checks covering all 80!forms and their other branches. scripts/check-targets: the test suite and the allocation check on bytecode, native ELF and wasm.- Tolerant comparisons (
vec3-approx=?,mat4-approx=?,quat-same-rotation?and the rest) that never accept NaN, written around sigil 0.22.7's<=,>=and=, which answer #t for NaN.