diff options
Diffstat (limited to 'include/BH/Math/Ray3f.h')
| -rw-r--r-- | include/BH/Math/Ray3f.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/include/BH/Math/Ray3f.h b/include/BH/Math/Ray3f.h new file mode 100644 index 0000000..7baf49d --- /dev/null +++ b/include/BH/Math/Ray3f.h @@ -0,0 +1,58 @@ +#ifndef BH_MATH_RAY3F_H +#define BH_MATH_RAY3F_H + +#include "../Common.h" + + +int BH_Ray3fIntersectPlane(const float start[3], + const float direction[3], + const float plane[4], + float *t, + float out[3]); + + + +int BH_Ray3fIntersectTriangle(const float start[3], + const float direction[3], + const float a[3], + const float b[3], + const float c[3], + float *t, + float out[3]); + + + +int BH_Segment3fIntersectPlane(const float start[3], + const float end[3], + const float plane[4], + float *t, + float out[3]); + + + +int BH_Segment3fIntersectTriangle(const float start[3], + const float end[3], + const float a[3], + const float b[3], + const float c[3], + float *t, + float out[3]); + + +int BH_Ray3fIntersectBox3f(const float aStart[3], + const float aDirection[3], + const float bMin[3], + const float bMax[3], + float *t, + float out[3]); + + + +int BH_Segment3fIntersectBox3f(const float aStart[3], + const float aEnd[3], + const float bMin[3], + const float bMax[3], + float *t, + float out[3]); + +#endif /* BH_MATH_RAY3F_H */ |
