diff options
Diffstat (limited to 'include/BH/Math/Plane.h')
| -rw-r--r-- | include/BH/Math/Plane.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/BH/Math/Plane.h b/include/BH/Math/Plane.h new file mode 100644 index 0000000..6d7e1d6 --- /dev/null +++ b/include/BH/Math/Plane.h @@ -0,0 +1,24 @@ +#ifndef BH_MATH_PLANE_H +#define BH_MATH_PLANE_H + +#include "../Common.h" + + +int BH_PlaneFromPoints(const float a[3], + const float b[3], + const float c[3], + float out[4]); + + + +float BH_PlaneDistance(const float plane[4], + const float point[3]); + + + +void BH_PlaneClosestPoint(const float plane[4], + const float point[3], + float out[3]); + + +#endif /* BH_MATH_PLANE_H */ |
