aabb intersect functions

* AABB vs AABB
* AABB vs Point
* AABB vs Sphere
* AABB contains AABB
This commit is contained in:
Recep Aslantas
2018-05-29 23:19:39 +03:00
parent af812e86eb
commit 5b3aabc103
3 changed files with 105 additions and 0 deletions

View File

@@ -56,6 +56,22 @@ CGLM_EXPORT
void
glmc_aabb_center(vec3 box[2], vec3 dest);
CGLM_EXPORT
bool
glmc_aabb_aabb(vec3 box[2], vec3 other[2]);
CGLM_EXPORT
bool
glmc_aabb_point(vec3 box[2], vec3 point);
CGLM_EXPORT
bool
glmc_aabb_contains(vec3 box[2], vec3 other[2]);
CGLM_EXPORT
bool
glmc_aabb_sphere(vec3 box[2], vec4 sph);
#ifdef __cplusplus
}
#endif