#include <IntersectionMethodsf.h>
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]) |
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.
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 |
static GLboolean ES3D::IntersectionMethodsf::triangleTriangleIntersectionf | ( | const GLfloat | t0[3 *3], | |
const GLfloat | t1[3 *3] | |||
) | [inline, static] |
Triangle vs. Triangle intersection test.
t0 | the first triangle | |
t1 | the second triangle |