1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-17 21:35:11 +00:00

Math Sizes (#297)

* Math Sizes

Added sizes to most variable types

* Removed sizes and fixed pads

Removed sizes from base types and cleaned up pads

* PR fixes
This commit is contained in:
louist103 2020-07-30 15:50:18 -04:00 committed by GitHub
parent c3421dda0c
commit 449b2247fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 43 additions and 43 deletions

View file

@ -7,69 +7,69 @@
typedef struct {
f32 x, y;
} Vec2f;
} Vec2f; // size = 0x08
typedef struct {
f32 x, y, z;
} Vec3f;
} Vec3f; // size = 0x0C
typedef struct {
u16 x, y, z;
} Vec3us;
} Vec3us; // size = 0x06
typedef struct {
s16 x, y, z;
} Vec3s;
} Vec3s; // size = 0x06
typedef struct {
s32 x, y, z;
} Vec3i;
} Vec3i; // size = 0x0C
typedef struct {
Vec3s center;
s16 radius;
} Sphere16;
} Sphere16; // size = 0x08
typedef struct {
Vec3f center;
f32 radius;
} Spheref;
} Spheref; // size = 0x10
typedef struct {
Vec3f normal;
f32 originDist;
} Plane;
} Plane; // size = 0x10
typedef struct {
Vec3f vtx[3];
Plane plane;
} TriNorm; //size = 0x34
} TriNorm; // size = 0x34
typedef struct {
s16 radius;
s16 height;
s16 yShift;
Vec3s pos;
} Cylinder16;
} Cylinder16; // size = 0x0C
typedef struct {
f32 radius;
f32 height;
f32 yShift;
Vec3f pos;
} Cylinderf;
} Cylinderf; // size = 0x18
typedef struct {
Vec3f a;
Vec3f b;
} Linef;
} Linef; // size = 0x18
// Defines a point in the spherical coordinate system
typedef struct {
f32 r; // radius
s16 phi; // polar (zenith) angle
s16 theta; // azimuthal angle
} VecSph;
} VecSph; // size = 0x08
#endif