aabb: center of AABB helper

* it is just wrapper of vec_center but it saves to access min and max values of AABB
This commit is contained in:
Recep Aslantas
2018-05-22 17:45:37 +03:00
parent 4e63325f55
commit fb2cac9816
3 changed files with 23 additions and 0 deletions

View File

@@ -64,3 +64,9 @@ float
glmc_aabb_radius(vec3 box[2]) {
return glm_aabb_radius(box);
}
CGLM_EXPORT
void
glmc_aabb_center(vec3 box[2], vec3 dest) {
glm_aabb_center(box, dest);
}