20 lines
277 B
C++
20 lines
277 B
C++
|
|
#ifndef BOX_H
|
|
#define BOX_H BOX_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Box : public Shape
|
|
{
|
|
public:
|
|
Box(refptr<Vector> size);
|
|
IntersectList intersect(const Ray & ray);
|
|
Vector getNormalAt(const Vector & pt);
|
|
|
|
protected:
|
|
Vector m_size;
|
|
};
|
|
|
|
#endif
|
|
|