20 lines
318 B
C++
20 lines
318 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);
|
|
IntersectList intersect(const Ray & ray);
|
|
Vector getNormalAt(const Vector & pt);
|
|
|
|
protected:
|
|
double m_a, m_b, m_c, m_d;
|
|
};
|
|
|
|
#endif
|
|
|