citro3d/source/maths/mtx_diagonal.c

11 lines
185 B
C
Raw Normal View History

2016-09-11 23:09:53 +02:00
#include <c3d/maths.h>
void Mtx_Diagonal(C3D_Mtx* out, float x, float y, float z, float w)
{
2016-09-11 23:18:59 +02:00
Mtx_Zeros(out);
out->r[0].x = x;
out->r[1].y = y;
out->r[2].z = z;
out->r[3].w = w;
2016-09-11 23:09:53 +02:00
}