summaryrefslogtreecommitdiff
path: root/include/z64math.h
diff options
context:
space:
mode:
authormzxrules <mzxrules@gmail.com>2023-10-11 08:32:02 -0400
committerGitHub <noreply@github.com>2023-10-11 09:32:02 -0300
commitf17e85d1fd2a124ddde9adaecbb044db341ec0d4 (patch)
tree6d058fc466b59b139b13dfd4e0b902405a7e3ec8 /include/z64math.h
parentdd4206bb244a47cbcb979dd0d3040c8f7ed998a8 (diff)
ovl_Obj_Grass_Unit OK and some grass documentation (#1172)
* z_obj_grass_unit OK * document some grass * pr suggestions, add grass_unit comment * pr suggestions * implement constants
Diffstat (limited to 'include/z64math.h')
-rw-r--r--include/z64math.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/z64math.h b/include/z64math.h
index 6fa64f4f4..4a4d15b98 100644
--- a/include/z64math.h
+++ b/include/z64math.h
@@ -40,6 +40,11 @@ typedef struct {
} Vec3i; // size = 0xC
typedef struct {
+ /* 0x0 */ f32 distance;
+ /* 0x4 */ s16 angle;
+} VecPolar; // size = 0x8
+
+typedef struct {
/* 0x0 */ Vec3s center;
/* 0x6 */ s16 radius;
} Sphere16; // size = 0x8
@@ -49,8 +54,8 @@ typedef struct {
/* 0xC */ f32 radius;
} Spheref; // size = 0x10
-/*
-The plane paramaters are of form `ax + by + cz + d = 0`
+/*
+The plane paramaters are of form `ax + by + cz + d = 0`
where `(a,b,c)` is the plane's normal vector and d is the originDist
*/
typedef struct {