Public Member Functions | Public Attributes

plane_t Struct Reference
[Core Geometry Objects]

basic 2D plane in 3D space. More...

#include <plane.h>

Collaboration diagram for plane_t:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

plane_t::plane_t ( void   )  throw () [inline]

Definition at line 56 of file plane.h.


Member Function Documentation

void plane_t::clear ( void   )  throw () [inline]

Definition at line 58 of file plane.h.

void plane_t::dump ( IN const char *  msg  )  const throw () [inline]

Definition at line 63 of file plane.h.

float plane_t::distance ( IN const point3d_t p  )  const throw () [inline]

returns distance from point to plane measured along normal

Definition at line 69 of file plane.h.


Member Data Documentation

n is the normal vector to the plane

Definition at line 74 of file plane.h.

float plane_t::d

d is the distance to origin along normal

Definition at line 75 of file plane.h.


The documentation for this struct was generated from the following file: