aboutsummaryrefslogtreecommitdiff
path: root/include/BH/Math/Ray2f.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/BH/Math/Ray2f.h')
-rw-r--r--include/BH/Math/Ray2f.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/include/BH/Math/Ray2f.h b/include/BH/Math/Ray2f.h
new file mode 100644
index 0000000..cbf17bf
--- /dev/null
+++ b/include/BH/Math/Ray2f.h
@@ -0,0 +1,76 @@
+#ifndef BH_MATH_RAY2F_H
+#define BH_MATH_RAY2F_H
+
+#include "../Common.h"
+
+
+int BH_Ray2fIntersectLine(const float start[2],
+ const float direction[2],
+ const float line[3],
+ float *t,
+ float out[2]);
+
+
+
+int BH_Ray2fIntersectTime(const float aStart[2],
+ const float aDirection[2],
+ const float bStart[2],
+ const float bDirection[2],
+ float *time1,
+ float *time2);
+
+
+
+int BH_Ray2fIntersectRay(const float aStart[2],
+ const float aDirection[2],
+ const float bStart[2],
+ const float bDirection[2],
+ float *t,
+ float out[2]);
+
+
+
+int BH_Ray2fIntersectSegment(const float aStart[2],
+ const float aDirection[2],
+ const float bStart[2],
+ const float bEnd[2],
+ float *t,
+ float out[2]);
+
+
+
+int BH_Segment2fIntersectLine(const float start[2],
+ const float end[2],
+ const float line[3],
+ float *t,
+ float out[2]);
+
+
+
+int BH_Segment2fIntersectSegment(const float aStart[2],
+ const float aEnd[2],
+ const float bStart[2],
+ const float bEnd[2],
+ float *t,
+ float out[2]);
+
+
+
+int BH_Ray2fIntersectBox2f(const float aStart[2],
+ const float aDirection[2],
+ const float bMin[2],
+ const float bMax[2],
+ float *t,
+ float out[2]);
+
+
+
+int BH_Segment2fIntersectBox2f(const float aStart[2],
+ const float aEnd[2],
+ const float bMin[2],
+ const float bMax[2],
+ float *t,
+ float out[2]);
+
+
+#endif /* BH_MATH_RAY2F_H */