diff options
Diffstat (limited to 'include/BH/Math/Box2f.h')
| -rw-r--r-- | include/BH/Math/Box2f.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/BH/Math/Box2f.h b/include/BH/Math/Box2f.h new file mode 100644 index 0000000..e6b9994 --- /dev/null +++ b/include/BH/Math/Box2f.h @@ -0,0 +1,37 @@ +#ifndef BH_MATH_BOX2F_H +#define BH_MATH_BOX2F_H + +#include "../Common.h" + + +void BH_Box2fUnion(const float aMin[2], + const float aMax[2], + const float bMin[2], + const float bMax[2], + float outMin[2], + float outMax[2]); + + + +int BH_Box2fIntersect(const float aMin[2], + const float aMax[2], + const float bMin[2], + const float bMax[2], + float outMin[2], + float outMax[2]); + + + +int BH_Box2fContains(const float aMin[2], + const float aMax[2], + const float point[2]); + + + +int BH_Box2fEnclose(const float *points, + size_t size, + float outMin[2], + float outMax[2]); + + +#endif /* BH_MATH_BOX2F_H */ |
