aboutsummaryrefslogtreecommitdiffstats
path: root/include/aabb.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-03-18 23:28:20 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-03-18 23:28:20 +0100
commitbc1073a020c99ed89967a6b00a9eeb4ab2e160dc (patch)
tree544497c811d3f47217995b0833c25691cdac8d41 /include/aabb.hpp
parent6c151c00ef2e4f56eedf239341bf320079e1f482 (diff)
Display frame time & add aabb ray hit function for future BVH
implementation
Diffstat (limited to 'include/aabb.hpp')
-rw-r--r--include/aabb.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/aabb.hpp b/include/aabb.hpp
new file mode 100644
index 0000000..9ec1f3f
--- /dev/null
+++ b/include/aabb.hpp
@@ -0,0 +1,13 @@
+#ifndef __AABB_HPP_
+#define __AABB_HPP_
+
+#include "vec3.hpp"
+
+class AABB {
+ AABB(vec3 min_point, vec3 max_point): minimum(min_point), maximum(max_point) {}
+
+ vec3 minimum;
+ vec3 maximum;
+};
+
+#endif // !__AABB_HPP_