Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

geomObj.h File Reference

Declaration of Edge class. Declaration of geometry helper functions. More...

Compounds

Functions


Detailed Description

Author(s):
Lukas Degener, Ingmar Kanitscheider


Define Documentation

#define GEOMOBJ_H
 

Value:


Function Documentation

VECTOR3D projection ( Edge edge,
VECTOR3D x )
 

returns the point on edge with minimal distance to x For a finit edge (type edge), this will be one of the end points, if the orthogonal projection of x isn't lying between the two end points. For a ray, this will be the start point (point1) of the edge, if the orthogonal projection is lying 'behind' the ray

Intersection intersect ( Edge e1,
Edge e2 )
 

returns the intersection of e1 and e2, or null if there is no intersection

int IntersectEdgeParallelogram ( Edge sectEdge,
Edge firstParEdge,
Edge secParEdge,
VECTOR3D * pIntersection )
 

Checks if there is an intersection between the edge and the plane in which the parallelogram lies. If the edges of the parallelogram aren't infinite the function projects the point on the bounds of the parallelogram.

Note:
It is assumed that the first point of the two edges is identical!
Parameters:
sectEdge   The intersecting edge
firstParEdge   First edge of the parallelogramm
secParEdge   Second edge of the parallelogramm
pIntersection   pointer to a vector to be filled with the intersection point.
Returns:
1 if there is an intersection, 0 otherwise.

VECTOR3D atrans ( VECTOR3D point,
const float * matrix )
 

applies an afine transformation to point matrix should be a 4x4 matrix, stored line after line.


Generated at Fri Apr 19 16:53:06 2002 for GLFramework by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001