aabb and sphere intersect functions
📽 Optimized OpenGL/Graphics Math (glm) for C
Brought to you by:
recp
Originally created by: recp
AABB functions:
New features for sphere:
I used glm_aabb_aabb for testing intersection, it could be glm_aabb_intersect or glm_aabb_intr but since for instance glm_aabb_point is used instead of glm_aabb_intersect_point same convention is also used for aabb.
Sphere Representation in cglm is vec4: [center.x, center.y, center.z, radii], functions will accept vec4 instead of two parameter for each sphere e.g . vec3 for center and float for radius. It is combined into vec4 in cglm.
If you have better idea or don't like this design please let me know.
Originally posted by: coveralls
Coverage decreased (-0.4%) to 13.209% when pulling 720b617ee06ff544695ef4241864b4045e4bb57f on sphere into af812e86ebc06aca69d27a058bcd6e5d4ec52923 on master.