A single-file, cross-platform, public domain game math library for C/C++. Fully inlined HandmadeMath.h. No need for HANDMADE_MATH_IMPLEMENTATION anymore. Added extra parentheses around some macros. Renamed the 'Rows' member of hmm_mat4 to 'Columns'. Since our matrices are column-major, this should have been named 'Columns' from the start. 'Rows' is still present, but has been deprecated. Added array subscript operators for vector and matrix types in C++. This is provided as a convenience, but be aware that it may incur an extra function call in unoptimized builds. Made HMM_Power faster, Fixed possible efficiency problem with HMM_Normalize, RENAMED HMM_LengthSquareRoot to HMM_LengthSquared, RENAMED HMM_RSqrtF to HMM_RSquareRootF, RENAMED HMM_SqrtF to HMM_SquareRootF, REMOVED Inner function (user should use Dot now), REMOVED HMM_FastInverseSquareRoot function declaration.
Features
- This library is in the public domain
- Lots of testing
- Scalar operations on vectors
- Unary Minus operator
- A single-file, cross-platform, public domain game
- Library for C/C++