Package toxi.geom
Class TriangleIntersector
java.lang.Object
toxi.geom.TriangleIntersector
- All Implemented Interfaces:
Intersector3D
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintersectsRay(Ray3D ray) Checks if entity intersects with the given ray.setTriangle(Triangle3D tri)
-
Field Details
-
triangle
-
-
Constructor Details
-
TriangleIntersector
public TriangleIntersector() -
TriangleIntersector
-
-
Method Details
-
getIntersectionData
- Specified by:
getIntersectionDatain interfaceIntersector3D- Returns:
- intersection data parcel
-
getTriangle
- Returns:
- the triangle
-
intersectsRay
Description copied from interface:Intersector3DChecks if entity intersects with the given ray. Further intersection details can then be queried via theIsectData3Dinstance returned byIntersector3D.getIntersectionData().- Specified by:
intersectsRayin interfaceIntersector3D- Parameters:
ray- ray to check- Returns:
- true, if ray hits the entity
-
setTriangle
- Parameters:
tri- the triangle to set
-