basic 2D plane in 3D space. More...
#include <plane.h>
Public Member Functions | |
plane_t (void) throw () | |
void | clear (void) throw () |
void | dump (IN const char *msg) const throw () |
float | distance (IN const point3d_t &p) const throw () |
returns distance from point to plane measured along normal | |
Public Attributes | |
point3d_t | n |
n is the normal vector to the plane | |
float | d |
d is the distance to origin along normal |
basic 2D plane in 3D space.
This is composed of a normal (vector), and a distance D (along the normal) from the origin.
Note that a point p in the plane satisfies the equation n.p = d.
Likewise, the distance from any point p to the plane is n.p - d (= 0 for points p in the plane, obviously).
Definition at line 55 of file plane.h.
void plane_t::dump | ( | IN const char * | msg | ) | const throw () [inline] |
float plane_t::distance | ( | IN const point3d_t & | p | ) | const throw () [inline] |
float plane_t::d |