#include <ddggeom.h>
Public Members | |||
ddgTriangle3 (ddgVector3 *p1, ddgVector3 *p2, ddgVector3 *p3 ) | |||
Constructor. | |||
void | set (ddgVector3 *p1, ddgVector3 *p2, ddgVector3 *p3 ) | ||
Set method. | |||
ddgTriangle3 (void ) | |||
Default bConstructor. | |||
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... | |||
ddgVertex3 | v [3] | ||
Vertices of the triangle. |
bool ddgTriangle3::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.