qbsp: comment wvert_t and wedge_t structures

Took me some time to work out what this was all representing and that t
was the parameter to the parametric equations of the edge's line in 3-d
space.  May as well make it easier for others and my future self.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-06-23 14:20:54 +09:30
parent 3cfc4a27cc
commit 6d6a787185
1 changed files with 6 additions and 6 deletions

View File

@ -516,15 +516,15 @@ void GrowNodeRegions(node_t *headnode);
// tjunc.c
typedef struct wvert_s {
vec_t t;
struct wvert_s *prev, *next;
vec_t t; /* t-value for parametric equation of edge */
struct wvert_s *prev, *next; /* t-ordered list of vertices on same edge */
} wvert_t;
typedef struct wedge_s {
struct wedge_s *next;
vec3_t dir;
vec3_t origin;
wvert_t head;
struct wedge_s *next; /* pointer for hash bucket chain */
vec3_t dir; /* direction vector for the edge */
vec3_t origin; /* origin (t = 0) in parametric form */
wvert_t head; /* linked list of verticies on this edge */
} wedge_t;
//=============================================================================