ES3D::IntersectionMethodsf Class Reference

#include <IntersectionMethodsf.h>

List of all members.

Static Public Member Functions

static GLboolean linePlaneIntersectionf (const GLfloat p[3], const GLfloat q[3], const GLfloat a[3], const GLfloat b[3], const GLfloat c[3], GLfloat &t, GLfloat &u, GLfloat &v, GLfloat &w)
static GLboolean triangleTriangleIntersectionf (const GLfloat t0[3 *3], const GLfloat t1[3 *3])


Detailed Description

This class contains typical intersection methods.


Member Function Documentation

static GLboolean ES3D::IntersectionMethodsf::linePlaneIntersectionf ( const GLfloat  p[3],
const GLfloat  q[3],
const GLfloat  a[3],
const GLfloat  b[3],
const GLfloat  c[3],
GLfloat &  t,
GLfloat &  u,
GLfloat &  v,
GLfloat &  w 
) [inline, static]

Checks the intersection between a line and a plane.

Parameters:
p starting point where the line goes through
q end point of the line
a first point of the plane
b second point of the plane
c third point of the plane
t variable to store t with P + (Q-P)*t
u barycentric coordinate u
v barycentric coordinate v
w barycentric coordinate w
Returns:
true, if there is an intersection

static GLboolean ES3D::IntersectionMethodsf::triangleTriangleIntersectionf ( const GLfloat  t0[3 *3],
const GLfloat  t1[3 *3] 
) [inline, static]

Triangle vs. Triangle intersection test.

Parameters:
t0 the first triangle
t1 the second triangle
Returns:
true, if an intersection did occur


The documentation for this class was generated from the following file:
Generated on Sat May 10 16:30:55 2008 for ES 3D Game SDK Documentation by  doxygen 1.4.7