MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / BSPInMinMax

Function BSPInMinMax

Descent3/bsp.cpp:1065–1071  ·  view source on GitHub ↗

Returns true if the point is inside the min,max

Source from the content-addressed store, hash-verified

1063
1064// Returns true if the point is inside the min,max
1065static inline int BSPInMinMax(vector *pos, vector *min_xyz, vector *max_xyz) {
1066 if (pos->x < min_xyz->x || pos->y < min_xyz->y || pos->z < min_xyz->z || pos->x > max_xyz->x || pos->y > max_xyz->y ||
1067 pos->z > max_xyz->z)
1068 return 0;
1069
1070 return 1;
1071}
1072// see if a point in inside a face by projecting into 2d
1073extern uint32_t check_point_to_face(vector *colp, vector *face_normal, int nv, vector **vertex_ptr_list);
1074

Callers 1

BSPPointInPolygonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected