21 lines
390 B
C++
21 lines
390 B
C++
|
|
#ifndef SUBTRACT_H
|
|
#define SUBTRACT_H SUBTRACT_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Subtract : public Shape
|
|
{
|
|
public:
|
|
Subtract(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
|
|
|