#include "Intersect.h" Intersect::Intersect(refptr shape1, refptr shape2) { m_shape1 = shape1; m_shape2 = shape2; } Shape::IntersectionList Intersect::intersect(refptr _this, const Ray & ray) { IntersectionList res1 = m_shape1->intersect(m_shape1, ray); IntersectionList res2 = m_shape2->intersect(m_shape2, ray); BoolIntersectionList merged(res1, res2, ray.getOrigin()); IntersectionList res; bool in1 = false, in2 = false; /* TODO: finish */ return res; } Vector Intersect::getNormalAt(const Vector & pt) { /* TODO: finish */ return Vector(0, 0, 0); }