Handmade Math Versions Save

A simple math library for games and computer graphics. Compatible with both C and C++. Public domain and easy to modify.

v1.7.1

5 years ago
  • Changed operator[] to take a const ref int instead of an int.

v1.7.0

5 years ago
  • 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.

v1.6.0

5 years ago
  • 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.

v1.5.1

5 years ago
  • Fixed a bug with uninitialized elements in HMM_LookAt.

v1.5.0

6 years ago
  • Changed internal structure for better performance and inlining.
    • As a result, HANDMADE_MATH_NO_INLINE has been removed and no longer has any effect.

v1.2.0

6 years ago
  • Added equality functions for HMM_Vec2, HMM_Vec3, and HMM_Vec4.
    • Added HMM_EqualsVec2, HMM_EqualsVec3, and HMM_EqualsVec4
    • Added C++ overloaded HMM_Equals for all three
    • Added C++ == and != operators for all three
  • SSE'd HMM_MultiplyMat4 (this is WAY faster)
  • SSE'd HMM_Transpose

v1.1.5

6 years ago
  • Added Width and Height to HMM_Vec2
  • Made it so you can supply your own SqrtF