Simple Math Library (SML)
C++ Library — Open Source
Simple Math Library (SML) is a header-only C++ mathematics library built primarily for computer graphics applications. It provides support for row-ordered vector and matrix types (2D vectors, 3×3 and 4×4 matrices, quaternions) with essential math operations, enabling developers to perform efficient 3D transformations, rotations, and vector arithmetic without any external dependencies.
The library follows a header-only architecture where declarations (.h) are paired with template implementations (.hpp). Users include types like Vec3f, Mat4x4, and Quat directly in their code. Vector classes support scalar and matrix multiplication through operator overloading. The Transform classes encapsulate position, rotation (Euler angles, with planned quaternion support), and scale properties for 2D and 3D coordinate systems. Row-ordered matrices allow efficient vector-matrix multiplications for graphics transformations.
View on GitHub