Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | pmbaty | 1 | #include "angles.h" |
2 | #include "CORE/MATH/matrix34.h" |
||
3 | #include "CORE/MATH/matrix4.h" |
||
4 | #include "CORE/MATH/quat.h" |
||
5 | #include "harness/trace.h" |
||
6 | |||
7 | order_info OrderAxes[32]; |
||
8 | |||
9 | // IDA: br_matrix34* __cdecl BrEulerToMatrix34(br_matrix34 *mat, br_euler *euler) |
||
10 | br_matrix34* BrEulerToMatrix34(br_matrix34* mat, br_euler* euler) { |
||
11 | //br_uint_8 o; // Pierre-Marie Baty -- unused variable |
||
12 | //br_angle ti; // Pierre-Marie Baty -- unused variable |
||
13 | //br_angle tj; // Pierre-Marie Baty -- unused variable |
||
14 | //br_angle th; // Pierre-Marie Baty -- unused variable |
||
15 | //br_scalar ci; // Pierre-Marie Baty -- unused variable |
||
16 | //br_scalar cj; // Pierre-Marie Baty -- unused variable |
||
17 | //br_scalar ch; // Pierre-Marie Baty -- unused variable |
||
18 | //br_scalar si; // Pierre-Marie Baty -- unused variable |
||
19 | //br_scalar sj; // Pierre-Marie Baty -- unused variable |
||
20 | //br_scalar sh; // Pierre-Marie Baty -- unused variable |
||
21 | //br_scalar cc; // Pierre-Marie Baty -- unused variable |
||
22 | //br_scalar cs; // Pierre-Marie Baty -- unused variable |
||
23 | //br_scalar sc; // Pierre-Marie Baty -- unused variable |
||
24 | //br_scalar ss; // Pierre-Marie Baty -- unused variable |
||
25 | //int a0; // Pierre-Marie Baty -- unused variable |
||
26 | //int a1; // Pierre-Marie Baty -- unused variable |
||
27 | //int a2; // Pierre-Marie Baty -- unused variable |
||
28 | LOG_TRACE("(%p, %p)", mat, euler); |
||
29 | NOT_IMPLEMENTED(); |
||
30 | } |
||
31 | |||
32 | // IDA: br_euler* __cdecl BrMatrix34ToEuler(br_euler *euler, br_matrix34 *mat) |
||
33 | br_euler* BrMatrix34ToEuler(br_euler* euler, br_matrix34* mat) { |
||
34 | //br_uint_8 o; // Pierre-Marie Baty -- unused variable |
||
35 | //int a0; // Pierre-Marie Baty -- unused variable |
||
36 | //int a1; // Pierre-Marie Baty -- unused variable |
||
37 | //int a2; // Pierre-Marie Baty -- unused variable |
||
38 | LOG_TRACE("(%p, %p)", euler, mat); |
||
39 | NOT_IMPLEMENTED(); |
||
40 | } |
||
41 | |||
42 | #if 0 // Pierre-Marie Baty -- unused (and incomplete) function |
||
43 | // IDA: br_matrix4* __cdecl BrEulerToMatrix4(br_matrix4 *mat, br_euler *euler) |
||
44 | br_matrix4* BrEulerToMatrix4(br_matrix4* mat, br_euler* euler) { |
||
45 | br_matrix34 tmp; |
||
46 | LOG_TRACE("(%p, %p)", mat, euler); |
||
47 | |||
48 | BrEulerToMatrix34(&tmp, euler); |
||
49 | BrMatrix4Copy34(mat, &tmp); |
||
50 | } |
||
51 | #endif // 0 |
||
52 | |||
53 | // IDA: br_euler* __cdecl BrMatrix4ToEuler(br_euler *dest, br_matrix4 *mat) |
||
54 | br_euler* BrMatrix4ToEuler(br_euler* dest, br_matrix4* mat) { |
||
55 | br_matrix34 tmp; |
||
56 | LOG_TRACE("(%p, %p)", dest, mat); |
||
57 | |||
58 | BrMatrix34Copy4(&tmp, mat); |
||
59 | return BrMatrix34ToEuler(dest, &tmp); |
||
60 | } |
||
61 | |||
62 | // IDA: br_quat* __cdecl BrEulerToQuat(br_quat *q, br_euler *euler) |
||
63 | br_quat* BrEulerToQuat(br_quat* q, br_euler* euler) { |
||
64 | //br_uint_8 o; // Pierre-Marie Baty -- unused variable |
||
65 | //br_angle ti; // Pierre-Marie Baty -- unused variable |
||
66 | //br_angle tj; // Pierre-Marie Baty -- unused variable |
||
67 | //br_angle th; // Pierre-Marie Baty -- unused variable |
||
68 | //br_scalar ci; // Pierre-Marie Baty -- unused variable |
||
69 | //br_scalar cj; // Pierre-Marie Baty -- unused variable |
||
70 | //br_scalar ch; // Pierre-Marie Baty -- unused variable |
||
71 | //br_scalar si; // Pierre-Marie Baty -- unused variable |
||
72 | //br_scalar sj; // Pierre-Marie Baty -- unused variable |
||
73 | //br_scalar sh; // Pierre-Marie Baty -- unused variable |
||
74 | //br_scalar cc; // Pierre-Marie Baty -- unused variable |
||
75 | //br_scalar cs; // Pierre-Marie Baty -- unused variable |
||
76 | //br_scalar sc; // Pierre-Marie Baty -- unused variable |
||
77 | //br_scalar ss; // Pierre-Marie Baty -- unused variable |
||
78 | //int a0; // Pierre-Marie Baty -- unused variable |
||
79 | //int a1; // Pierre-Marie Baty -- unused variable |
||
80 | //int a2; // Pierre-Marie Baty -- unused variable |
||
81 | LOG_TRACE("(%p, %p)", q, euler); |
||
82 | NOT_IMPLEMENTED(); |
||
83 | } |
||
84 | |||
85 | // IDA: br_euler* __cdecl BrQuatToEuler(br_euler *euler, br_quat *q) |
||
86 | br_euler* BrQuatToEuler(br_euler* euler, br_quat* q) { |
||
87 | br_matrix34 mat; |
||
88 | LOG_TRACE("(%p, %p)", euler, q); |
||
89 | |||
90 | BrQuatToMatrix34(&mat, q); |
||
91 | return BrMatrix34ToEuler(euler, &mat); |
||
92 | } |