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

Added virtual function bounds to give AABBs to shapes

parent 3a734289
No related branches found
No related tags found
No related merge requests found
......@@ -8,5 +8,6 @@ namespace shapes {
class Shape {
public:
virtual std::shared_ptr<cam::Hit> intersect(const cam::Ray& r) const = 0;
virtual util::AxisAlignedBoundingBox bounds() const = 0;
};
} // namespace shapes
\ 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