mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 23:05:36 -04:00
1114b13da8
* d_a_alldie / d_a_tboxSw / d_a_tag_gstart / d_a_tag_hstop * dolphin OS work / cleanup * dolphin GX work / cleanup * finish changing dolphin files to C * more files into C * match rest of MSL_C math functions * more dolphin files converted to C * remove asm * d_bg_w work * remove asm * d_a_alink work / kytag14
23 lines
440 B
C
23 lines
440 B
C
#ifndef QUAT_H
|
|
#define QUAT_H
|
|
|
|
#include "dolphin/mtx/vec.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Quaternion {
|
|
f32 x, y, z, w;
|
|
} Quaternion;
|
|
|
|
void PSQUATMultiply(const Quaternion* a, const Quaternion* b, Quaternion* ab);
|
|
void C_QUATRotAxisRad(Quaternion* q, const Vec* axis, f32 rad);
|
|
void C_QUATSlerp(const Quaternion* p, const Quaternion* q, Quaternion* r, f32 t);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif /* QUAT_H */
|