mirror of https://github.com/zeldaret/tp.git
18 lines
402 B
C
18 lines
402 B
C
#ifndef QUAT_H
|
|
#define QUAT_H
|
|
|
|
#include "dolphin/mtx/vec.h"
|
|
#include "dolphin/types.h"
|
|
|
|
struct Quaternion {
|
|
f32 x, y, z, w;
|
|
};
|
|
|
|
extern "C" {
|
|
void PSQUATMultiply(const Quaternion* src_a, const Quaternion* src_b, Quaternion* dst);
|
|
void C_QUATRotAxisRad(Quaternion* q, const Vec* axis, f32 rad);
|
|
void C_QUATSlerp(const Quaternion* p, const Quaternion* q, Quaternion* r, f32 t);
|
|
}
|
|
|
|
#endif /* QUAT_H */
|