21 lines
371 B
C++
21 lines
371 B
C++
|
|
#ifndef INTERSECT_H
|
|
#define INTERSECT_H INTERSECT_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Intersect : public Shape
|
|
{
|
|
public:
|
|
Intersect(refptr<Shape> shape1, refptr<Shape> shape2);
|
|
IntersectList intersect(const Ray & ray);
|
|
Vector getNormalAt(const Vector & pt);
|
|
|
|
protected:
|
|
refptr<Shape> m_shape1;
|
|
refptr<Shape> m_shape2;
|
|
};
|
|
|
|
#endif
|
|
|