basic 2D plane in 3D space. More...
|plane_t (void) throw ()|
|void||clear (void) throw ()|
|void||dump (const char *msg) const throw ()|
|float||distance (const point3d_t &p) const throw ()|
|returns distance from point to plane measured along normal |
|n is the normal vector to the plane |
|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).
|void plane_t::dump||(||const char *||msg||)|| const throw ()
|float plane_t::distance||(||const point3d_t &||p||)|| const throw ()