MarSTDv2004: CPlane Class Reference

MarSTDv2004

CPlane Class Reference

Collaboration diagram for CPlane:

Collaboration graph
[legend]
List of all members.

Detailed Description

Plane type. Generic normal(x, y, z) + distance.

Definition at line 41 of file CPlane.h.

Public Member Functions

void normalize ()
void setup (CVector vector1, CVector vector2, CVector vector3)
void operator= (CPlane plane)
float operator * (CVector vector)
CPlane operator- ()
CPlaneunlink ()

Public Attributes

CVector normal
 Normal vector.
float distance
 'Distance' or d value of equation.
CPlaneprev
CPlanenext

Member Function Documentation

void CPlane::normalize  ) 
 

Normalises the normal, and adjusts distance appropiately.

Definition at line 66 of file CPlane.h.

Here is the call graph for this function:

void CPlane::setup CVector  vector1,
CVector  vector2,
CVector  vector3
 

Sets up a plane from three given vectors. These vectors define a triangle in CW order.

Parameters:
vector1 First point of triangle.
vector2 Second point of triangle.
vector3 Third point of triangle.

Definition at line 80 of file CPlane.h.

void CPlane::operator= CPlane  plane  ) 
 

Copies plane.

Definition at line 95 of file CPlane.h.

float CPlane::operator * CVector  vector  ) 
 

Returns distance of vector to plane.

Returns:
The distance: normal * vector - distance.

Definition at line 104 of file CPlane.h.

CPlane CPlane::operator-  ) 
 

Negates (mirrors) plane.

Definition at line 111 of file CPlane.h.


The documentation for this class was generated from the following file:
Generated on Tue Feb 8 21:59:43 2005 for MarSTDv2004 by  doxygen 1.4.1