git-svn-id: svn://anubis/fart/branches/2009-03-09_intersect_returning_normals@200 7f9b0f55-74a9-4bce-be96-3c2cd072584d
20 lines
320 B
C++
20 lines
320 B
C++
|
|
#ifndef PLANE_H
|
|
#define PLANE_H PLANE_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Plane : public Shape
|
|
{
|
|
public:
|
|
Plane(double a, double b, double c, double d);
|
|
IntersectionList intersect(refptr<Shape> _this, const Ray & ray);
|
|
|
|
protected:
|
|
double m_a, m_b, m_c, m_d;
|
|
Vector m_normal;
|
|
};
|
|
|
|
#endif
|
|
|