Package toxi.geom
Interface Intersector3D
- All Known Subinterfaces:
Reflector3D
- All Known Implementing Classes:
BoxIntersector
,MeshIntersector
,PlaneIntersector
,Ray3DIntersector
,SphereIntersectorReflector
,TriangleIntersector
,TriangleMesh
,WETriangleMesh
public interface Intersector3D
Generic interface for ray intersection with 3D geometry
-
Method Summary
Modifier and TypeMethodDescriptionboolean
intersectsRay
(Ray3D ray) Checks if entity intersects with the given ray.
-
Method Details
-
getIntersectionData
IsectData3D getIntersectionData()- Returns:
- intersection data parcel
-
intersectsRay
Checks if entity intersects with the given ray. Further intersection details can then be queried via theIsectData3D
instance returned bygetIntersectionData()
.- Parameters:
ray
- ray to check- Returns:
- true, if ray hits the entity
-