forked from dethrace-labs/dethrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangles.h
44 lines (35 loc) · 1.06 KB
/
angles.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef _ANGLES_H_
#define _ANGLES_H_
#include "brender/br_types.h"
#include <math.h>
#define BR_EULER_XYZ_S 0
#define BR_EULER_XYX_S 8
#define BR_EULER_XZY_S 4
#define BR_EULER_XZX_S 12
#define BR_EULER_YZX_S 1
#define BR_EULER_YZY_S 9
#define BR_EULER_YXZ_S 5
#define BR_EULER_YXY_S 13
#define BR_EULER_ZXY_S 2
#define BR_EULER_ZXZ_S 10
#define BR_EULER_ZYX_S 6
#define BR_EULER_ZYZ_S 14
#define BR_EULER_ZYX_R 16
#define BR_EULER_XYX_R 24
#define BR_EULER_YZX_R 20
#define BR_EULER_XZX_R 28
#define BR_EULER_XZY_R 17
#define BR_EULER_YZY_R 25
#define BR_EULER_ZXY_R 21
#define BR_EULER_YXY_R 29
#define BR_EULER_YXZ_R 18
#define BR_EULER_ZXZ_R 26
#define BR_EULER_XYZ_R 22
#define BR_EULER_ZYZ_R 30
br_matrix34* BrEulerToMatrix34(br_matrix34* mat, br_euler* euler);
br_euler* BrMatrix34ToEuler(br_euler* euler, br_matrix34* mat);
br_matrix4* BrEulerToMatrix4(br_matrix4* mat, br_euler* euler);
br_euler* BrMatrix4ToEuler(br_euler* dest, br_matrix4* mat);
br_quat* BrEulerToQuat(br_quat* q, br_euler* euler);
br_euler* BrQuatToEuler(br_euler* euler, br_quat* q);
#endif