20 lines
293 B
C++
20 lines
293 B
C++
|
|
#ifndef BOX_H
|
|
#define BOX_H BOX_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Box : public Shape
|
|
{
|
|
public:
|
|
Box(refptr<Vector> size);
|
|
IntersectionList intersect(refptr<Shape> _this, const Ray & ray);
|
|
virtual refptr<Shape> clone();
|
|
|
|
protected:
|
|
Vector m_size;
|
|
};
|
|
|
|
#endif
|
|
|