Bienvenue à MAG
MAG (Mathematics and Graphics) is a modern-cpp math library built for use in 3D graphics. The library targets C++20 and newer, uses C++ modules, and ships a compact API for vector math, matrix math, transform helpers, constants, and optional SIMD acceleration.
Fonctionnalités
A single public module import:
import mag;Vector types for 2D, 3D, and 4D math
Matrix types and transform helpers for graphics workflows
Optional SIMD types and helpers when SIMD support is enabled at build time
CMake integration for both in-tree and dependency-based builds
Pour commencer
Library Overview - Library overview and module layout
Building from Source - Configure, build, and test MAG
Integrating MAG - Ajouter MAG à un autre projet CMake
Using MAG - Exemples de base de vecteurs, de matrices et de SIMD