mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-26 06:55:01 +03:00
0205789a28
* graphics? * more stuff * missed one * headers * data import and such
30 lines
521 B
C
30 lines
521 B
C
#ifndef SF64_MATH_H
|
|
#define SF64_MATH_H
|
|
|
|
#include "PR/ultratypes.h"
|
|
|
|
typedef struct {
|
|
/* 0x0 */ f32 x;
|
|
/* 0x4 */ f32 y;
|
|
/* 0x8 */ f32 z;
|
|
} Vec3f; // size = 0xC
|
|
|
|
typedef struct {
|
|
/* 0x0 */ s16 x;
|
|
/* 0x2 */ s16 y;
|
|
/* 0x4 */ s16 z;
|
|
} Vec3s; // size = 0x6;
|
|
|
|
typedef union {
|
|
float m[4][4];
|
|
struct {
|
|
float xx, yx, zx, wx,
|
|
xy, yy, zy, wy,
|
|
xz, yz, zz, wz,
|
|
xw, yw, zw, ww;
|
|
};
|
|
// u64 force_struct_alignment;
|
|
} Matrix; // size = 0x40
|
|
|
|
#endif
|