mirror of https://github.com/zeldaret/tp.git
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 */
|