Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 pmbaty 1
#ifndef _ANGLES_H_
2
#define _ANGLES_H_
3
 
4
#include "brender/br_types.h"
5
#include <math.h>
6
 
7
#define BR_EULER_XYZ_S 0
8
#define BR_EULER_XYX_S 8
9
#define BR_EULER_XZY_S 4
10
#define BR_EULER_XZX_S 12
11
#define BR_EULER_YZX_S 1
12
#define BR_EULER_YZY_S 9
13
#define BR_EULER_YXZ_S 5
14
#define BR_EULER_YXY_S 13
15
#define BR_EULER_ZXY_S 2
16
#define BR_EULER_ZXZ_S 10
17
#define BR_EULER_ZYX_S 6
18
#define BR_EULER_ZYZ_S 14
19
#define BR_EULER_ZYX_R 16
20
#define BR_EULER_XYX_R 24
21
#define BR_EULER_YZX_R 20
22
#define BR_EULER_XZX_R 28
23
#define BR_EULER_XZY_R 17
24
#define BR_EULER_YZY_R 25
25
#define BR_EULER_ZXY_R 21
26
#define BR_EULER_YXY_R 29
27
#define BR_EULER_YXZ_R 18
28
#define BR_EULER_ZXZ_R 26
29
#define BR_EULER_XYZ_R 22
30
#define BR_EULER_ZYZ_R 30
31
 
32
br_matrix34* BrEulerToMatrix34(br_matrix34* mat, br_euler* euler);
33
 
34
br_euler* BrMatrix34ToEuler(br_euler* euler, br_matrix34* mat);
35
 
36
#if 0 // Pierre-Marie Baty -- unused (and incomplete) function
37
br_matrix4* BrEulerToMatrix4(br_matrix4* mat, br_euler* euler);
38
#endif // 0
39
 
40
br_euler* BrMatrix4ToEuler(br_euler* dest, br_matrix4* mat);
41
 
42
br_quat* BrEulerToQuat(br_quat* q, br_euler* euler);
43
 
44
br_euler* BrQuatToEuler(br_euler* euler, br_quat* q);
45
 
46
#endif