00001 #ifndef PLANE_H 00002 #define PLANE_H 00003 00004 #include "vector.h" 00005 00006 class Plane { 00007 public: 00008 VECTOR normal; 00009 VECTOR point; 00010 float dist; 00011 Plane(); 00012 Plane(VECTOR n, VECTOR p); 00013 ~Plane() {}; 00014 float Distance(VECTOR x); // distance between point x and plane 00015 bool Intersection(VECTOR ray_point, VECTOR ray_dir, VECTOR *res); 00016 }; 00017 00018 #endif