fart/shapes/Intersect.cc
Josh Holtrop e23d5cdca4 added shapes/Intersect, need to rework IntersectList
git-svn-id: svn://anubis/fart/trunk@142 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-02-23 05:51:51 +00:00

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);
}