Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
quat.h
Go to the documentation of this file.
1#ifndef QUAT_H
2#define QUAT_H
3
4#include "dolphin/mtx/vec.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct Quaternion {
11 f32 x, y, z, w;
13
14typedef f32 PSQuaternion[4];
15
18void C_QUATSlerp(const Quaternion* p, const Quaternion* q, Quaternion* r, f32 t);
19
20/* When compiling in debug mode, use C implementations */
21#ifdef DEBUG
22// TODO: Add debug rom C implementations
23/* #define QUATMultiply C_QUATMultiply */
24
25#define QUATMultiply PSQUATMultiply
26#else
27#define QUATMultiply PSQUATMultiply
28#endif
29
30#ifdef __cplusplus
31};
32#endif
33
34#endif /* QUAT_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
q
Definition e_acos.c:99
r
Definition e_acos.c:100
p
Definition e_acos.c:98
t
Definition e_asin.c:95
a
Definition k_cos.c:89
f32 PSQuaternion[4]
Definition quat.h:14
void C_QUATRotAxisRad(Quaternion *q, const Vec *axis, f32 rad)
Definition quat.c:48
void C_QUATSlerp(const Quaternion *p, const Quaternion *q, Quaternion *r, f32 t)
Definition quat.c:67
void PSQUATMultiply(const Quaternion *a, const Quaternion *b, Quaternion *ab)
Definition d_a_hozelda.cpp:16
f32 w
Definition quat.h:11
f32 z
Definition quat.h:11
f32 y
Definition quat.h:11
f32 x
Definition quat.h:11
Definition d_a_hozelda.cpp:18
float f32
Definition types.h:22