#ifndef PLANE_H_INCLUDED #define PLANE_H_INCLUDED #include #include class Plane : public BaseObject { public: Plane( const Vector3 &pt, const Vector3 &normal ); virtual ~Plane( void ); bool closestIntersect( Vector3 *pos, Vector3 *norm, const Vector3 &o, const Vector3 &dir ) const; private: // ax + by + cz + d = 0 double a, b, c, d; }; #endif // PLANE_H_INCLUDED