fart/shapes/Union.h
Josh Holtrop 27cea5e702 added Union shape based on Intersect
git-svn-id: svn://anubis/fart/trunk@156 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-02-27 18:34:08 +00:00

21 lines
375 B
C++

#ifndef UNION_H
#define UNION_H UNION_H
#include "Shape.h"
class Union : public Shape
{
public:
Union(refptr<Shape> shape1, refptr<Shape> shape2);
IntersectionList intersect(refptr<Shape> _this, const Ray & ray);
Vector getNormalAt(const Vector & pt);
protected:
refptr<Shape> m_shape1;
refptr<Shape> m_shape2;
};
#endif