Disponible
amalgame-math-vec
Vec3 / Vec4 / Mat4 column-major (OpenGL).
Vue d'ensemble
Algèbre linéaire pour graphics et jeux : vecteurs, matrices, quaternions. Convention column-major compatible OpenGL/Vulkan. Idéal en complément de ui-gl ou ui-vk.
Caractéristiques
- ✓
Vec2,Vec3,Vec4avec ops vectorielles - ✓
Mat3,Mat4column-major (OpenGL/Vulkan) - ✓Quaternions pour rotations 3D
- ✓Constructeurs : translation, rotation, scale, perspective, ortho, lookAt
- ✓Pure Amalgame — pas de dépendance C
Exemple
Exemple minimal d'utilisation — recopiable tel quel après l'install.
amc package add math-vec let eye = Vec3.New(0.0, 0.0, 5.0) let center = Vec3.New(0.0, 0.0, 0.0) let up = Vec3.New(0.0, 1.0, 0.0) let view = Mat4.LookAt(eye, center, up)
En bref
- Licence : Apache-2.0
- Installation :
amc package add math-vec - Code source : amalgame-lang/amalgame-math-vec
- Index officiel : amalgame-lang/packages-index