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

@@ -70,3 +70,27 @@ void
glmc_aabb_center(vec3 box[2], vec3 dest) {
glm_aabb_center(box, dest);
}
CGLM_EXPORT
bool
glmc_aabb_aabb(vec3 box[2], vec3 other[2]) {
return glm_aabb_aabb(box, other);
}
CGLM_EXPORT
bool
glmc_aabb_point(vec3 box[2], vec3 point) {
return glm_aabb_point(box, point);
}
CGLM_EXPORT
bool
glmc_aabb_contains(vec3 box[2], vec3 other[2]) {
return glm_aabb_contains(box, other);
}
CGLM_EXPORT
bool
glmc_aabb_sphere(vec3 box[2], vec4 sph) {
return glm_aabb_sphere(box, sph);
}