MMath is a single-header math library made in C for use with OpenGL and other similar graphics APIs.
MMath has been lightly tested with both MSVC and GCC, but problems may still exist. Please report any bugs found in the issues section so they can be dealt with quickly.
Some documentation is provided in the wiki, but more will be added in the future.
- Vectors
- Square matrices
- Quaternions
- Transformations
- Easy appending to:
- vectors
- matrices
- Rectangular matrices
- SIMD optimizations
- Various profilings
- Renaming the library
MMath is released, free of charge, under the MIT license. This means that you are allowed to use MMath for both private and commercial projects as well as modify and redistribute it. You are not obligated to credit MMath in your projects, but it would be greatly appreciated.
To add MMath to your project, simply put the MMath.h
header file in your project's include directory and use #include "MMath.h"
anywhere math is required.
If you require double precision, add the line #define MMATH_DOUBLE
before including MMath.h
.