Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgTriangle Class Reference

Ray triangle intersection tests. More...

#include <ddggeom.h>

List of all members.


Public Members

 ddgTriangle (ddgVector3 p1, ddgVector3 p2, ddgVector3 p3 )
Constructor.

bool intersectTriangleWithLine ( const ddgVector3 l1, const ddgVector3 l2, ddgVector3 *pi)
Intersect a triangle with line. Returns if point is.

bool intersectPointTriangle ( const ddgVector3 pt)
Intersect a point with triangle. More...


Detailed Description

Ray triangle intersection tests.


Member Function Documentation

bool ddgTriangle::intersectPointTriangle (const ddgVector3 pt)

Intersect a point with triangle.

Returns if point is inside the triangle. point is assumed to lie in plane of triangle.


The documentation for this class was generated from the following files:
Generated at Thu Apr 6 00:42:30 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999