fart/shapes/Intersect.cc
Josh Holtrop 0c7f85db96 updating IntersectList to new Shape::IntersectionList format
git-svn-id: svn://anubis/fart/branches/2009-02-23_Shape_IntersectList_Update@144 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-02-23 20:24:30 +00:00

26 lines
508 B
C++

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