diff options
Diffstat (limited to 'include/BH/Math/Box3f.h')
| -rw-r--r-- | include/BH/Math/Box3f.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/BH/Math/Box3f.h b/include/BH/Math/Box3f.h new file mode 100644 index 0000000..3f5f102 --- /dev/null +++ b/include/BH/Math/Box3f.h @@ -0,0 +1,37 @@ +#ifndef BH_MATH_BOX3F_H +#define BH_MATH_BOX3F_H + +#include "../Common.h" + + +void BH_Box3fUnion(const float aMin[3], + const float aMax[3], + const float bMin[3], + const float bMax[3], + float outMin[3], + float outMax[3]); + + + +int BH_Box3fIntersect(const float aMin[3], + const float aMax[3], + const float bMin[3], + const float bMax[3], + float outMin[3], + float outMax[3]); + + + +int BH_Box3fContains(const float aMin[3], + const float aMax[3], + const float point[3]); + + + +int BH_Box3fEnclose(const float *points, + size_t size, + float outMin[3], + float outMax[3]); + + +#endif /* BH_MATH_BOX3F_H */ |
