citro3d/source/maths/mtx_identity.c

8 lines
140 B
C
Raw Normal View History

2014-12-20 21:34:19 +01:00
#include <c3d/maths.h>
void Mtx_Identity(C3D_Mtx* out)
{
Mtx_Zeros(out);
out->r[0].x = out->r[1].y = out->r[2].z = out->r[3].w = 1.0f;
}