[Core Geometry Objects]

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

`#include <plane.h>`

Collaboration diagram for plane_t:

## Public Member Functions | |

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 | |

## 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 | ( | const char * | msg |
) | const throw ()` [inline]` |

float plane_t::distance | ( | const point3d_t & | p |
) | const throw ()` [inline]` |

float plane_t::d |

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

Generated on Wed Sep 8 2010 for AESOP Multiplayer Game Framework by 1.7.1