More boilerplate
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <array>
|
||||
#include <glm/glm.hpp>
|
||||
#include <algorithm>
|
||||
#include "util/Ray.h"
|
||||
|
||||
struct AABB
|
||||
{
|
||||
@@ -42,6 +43,11 @@ struct AABB
|
||||
max = glm::vec3(std::max(max.x, transformed.x), std::max(max.y, transformed.y), std::max(max.z, transformed.z));
|
||||
}
|
||||
}
|
||||
bool intersects(Ray ray)
|
||||
{
|
||||
assert(false && "TODO");
|
||||
return false;
|
||||
}
|
||||
static AABB combine(AABB lhs, AABB rhs)
|
||||
{
|
||||
AABB result = {
|
||||
|
||||
Reference in New Issue
Block a user