Package com.ardor3d.intersection
Class TriangleTriangleIntersect
java.lang.Object
com.ardor3d.intersection.TriangleTriangleIntersect
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
EPSILON represents the error buffer used to denote a hit. -
Constructor Summary
-
Method Summary
-
Field Details
-
EPSILON
public static final double EPSILONEPSILON represents the error buffer used to denote a hit.- See Also:
-
-
Constructor Details
-
TriangleTriangleIntersect
public TriangleTriangleIntersect()
-
-
Method Details
-
intersectTriTri
public static boolean intersectTriTri(Vector3 v0, Vector3 v1, Vector3 v2, Vector3 u0, Vector3 u1, Vector3 u2) This method tests for the intersection between two triangles defined by their vertices. Converted to java from C code found at http://jgt.akpeters.com/papers/Moller97/- Parameters:
v0
- First triangle's first vertex.v1
- First triangle's second vertex.v2
- First triangle's third vertex.u0
- Second triangle's first vertex.u1
- Second triangle's second vertex.u2
- Second triangle's third vertex.- Returns:
- True if the two triangles intersect, false otherwise.
-