A simple math library for games and computer graphics. Compatible with both C and C++. Public domain and easy to modify.
operator[]
to take a const ref int instead of an int.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.HANDMADE_MATH_NO_INLINE
has been removed and no longer has any effect.HMM_Vec2
, HMM_Vec3
, and HMM_Vec4
.
HMM_EqualsVec2
, HMM_EqualsVec3
, and HMM_EqualsVec4
HMM_Equals
for all three==
and !=
operators for all threeHMM_MultiplyMat4
(this is WAY faster)HMM_Transpose
Width
and Height
to HMM_Vec2
SqrtF