CIvfPlane Class Reference

#include <ivfmath/IvfPlane.h>

Inheritance diagram for CIvfPlane:

CIvfMathBase CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfPlane ()
virtual ~CIvfPlane ()
void setNormal (double vx, double vy, double vz)
void getNormal (double &vx, double &vy, double &vz)
void normalFromVectors (double *v1, double *v2)
void setDistance (double d)
double getDistance ()
void distanceFromPoint (double x, double y, double z)
bool isSphereInFront (double x, double y, double z, double radius)
bool isInFront (double x, double y, double z)
void intersect (double x0, double y0, double z0, double vx, double vy, double vz, double &x, double &y, double &z)

Detailed Description

Geometric plane class

Handles operation on a geometric plane. The class is used to determine visibility of objects when culling the scene.

Author:
Jonas Lindemann

Definition at line 30 of file IvfPlane.h.


Constructor & Destructor Documentation

CIvfPlane::CIvfPlane  ) 
 

CIvfPlane constructor

virtual CIvfPlane::~CIvfPlane  )  [virtual]
 

CIvfPlane destructor


Member Function Documentation

void CIvfPlane::distanceFromPoint double  x,
double  y,
double  z
 

Calculate plane distance from given point

double CIvfPlane::getDistance  ) 
 

Return plane distance

void CIvfPlane::getNormal double &  vx,
double &  vy,
double &  vz
 

Return plane normal

void CIvfPlane::intersect double  x0,
double  y0,
double  z0,
double  vx,
double  vy,
double  vz,
double &  x,
double &  y,
double &  z
 

Calculate plane intersection

Parameters:
x0,y0,z0 starting point
vx,vy,vz intersecting vector
x,y,z intersection point

bool CIvfPlane::isInFront double  x,
double  y,
double  z
 

Returns true if the given point is in fron of the plane

bool CIvfPlane::isSphereInFront double  x,
double  y,
double  z,
double  radius
 

Returns true if the given sphere is in front of the plane

void CIvfPlane::normalFromVectors double *  v1,
double *  v2
 

Determine plane from vectors v1 and v2

void CIvfPlane::setDistance double  d  ) 
 

Set plane distance

void CIvfPlane::setNormal double  vx,
double  vy,
double  vz
 

Set plane normal


The documentation for this class was generated from the following files:
Generated on Fri Sep 1 15:36:55 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO