25 lines
452 B
C++
25 lines
452 B
C++
|
|
#include "Intersect.h"
|
|
|
|
Intersect::Intersect(refptr<Shape> shape1, refptr<Shape> shape2)
|
|
{
|
|
m_shape1 = shape1;
|
|
m_shape2 = shape2;
|
|
}
|
|
|
|
Shape::IntersectList Intersect::intersect(const Ray & ray)
|
|
{
|
|
IntersectList res;
|
|
IntersectList res1 = m_shape1->intersect(ray);
|
|
IntersectList res2 = m_shape2->intersect(ray);
|
|
|
|
|
|
return res;
|
|
}
|
|
|
|
Vector Intersect::getNormalAt(const Vector & pt)
|
|
{
|
|
/* TODO: finish */
|
|
return Vector(0, 0, 0);
|
|
}
|