PowerBlocks SDK
 
Loading...
Searching...
No Matches
matrix34.h
1
11
12#include "vec3.h"
13
14#include <string.h>
15
16typedef float matrix34[3][4];
17
18#define MATRIX34_COPY(dst, src) memcpy(dst, src, sizeof(matrix34));
19
20extern void matrix34_identity(matrix34 mtx);
21
22extern void matrix34_rotate_x(matrix34 mtx, float angle);
23extern void matrix34_rotate_y(matrix34 mtx, float angle);
24extern void matrix34_rotate_z(matrix34 mtx, float angle);
25
26extern void matrix34_translation(matrix34 mtx, const vec3* pos);
27
28extern void matrix34_scale(matrix34 mtx, const vec3* pos);
29
30extern void matrix34_multiply(matrix34 dst, const matrix34 a, const matrix34 b);
31extern void matrix34_inverse(matrix34 dst, const matrix34 src);
Definition vec3.h:16
Simple 3D vectors.