From f17e85d1fd2a124ddde9adaecbb044db341ec0d4 Mon Sep 17 00:00:00 2001 From: mzxrules Date: Wed, 11 Oct 2023 08:32:02 -0400 Subject: 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 --- include/z64math.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/z64math.h b/include/z64math.h index 6fa64f4f4..4a4d15b98 100644 --- a/include/z64math.h +++ b/include/z64math.h @@ -39,6 +39,11 @@ typedef struct { /* 0x8 */ s32 z; } Vec3i; // size = 0xC +typedef struct { + /* 0x0 */ f32 distance; + /* 0x4 */ s16 angle; +} VecPolar; // size = 0x8 + typedef struct { /* 0x0 */ Vec3s center; /* 0x6 */ s16 radius; @@ -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 { -- cgit v1.2.3