Package toxi.geom
Class Ray3DIntersector
java.lang.Object
toxi.geom.Ray3DIntersector
- All Implemented Interfaces:
Intersector3D
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
intersectsRay
(Ray3D other) Checks if entity intersects with the given ray.
-
Field Details
-
ray
-
-
Constructor Details
-
Ray3DIntersector
-
-
Method Details
-
getIntersectionData
- Specified by:
getIntersectionData
in interfaceIntersector3D
- Returns:
- intersection data parcel
-
intersectsRay
Description copied from interface:Intersector3D
Checks if entity intersects with the given ray. Further intersection details can then be queried via theIsectData3D
instance returned byIntersector3D.getIntersectionData()
.- Specified by:
intersectsRay
in interfaceIntersector3D
- Parameters:
other
- ray to check- Returns:
- true, if ray hits the entity
-