Skip to content
Snippets Groups Projects
Commit cf2a8342 authored by Yoel's avatar Yoel
Browse files

New functions: center, partiallyContains, orientate and split

parent da54f190
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,16 @@ class AxisAlignedBoundingBox {
// Methods
bool intersects(const cam::Ray& r) const;
bool contains(const Vec3& v) const;
bool partiallyContains(const AxisAlignedBoundingBox bb);
Vec3 center() const;
Vec3 minBound() const;
Vec3 maxBound() const;
private:
Vec3 min, max;
void orientate();
};
// From cgg Abgaben of Prof. Tramberend
std::array<AxisAlignedBoundingBox, 2> splitAABB(AxisAlignedBoundingBox box);
} // namespace util
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment