Package toxi.geom
Class BoxIntersector
java.lang.Object
toxi.geom.BoxIntersector
- All Implemented Interfaces:
Intersector3D
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBox()
boolean
intersectsRay
(Ray3D ray) Checks if entity intersects with the given ray.void
-
Constructor Details
-
BoxIntersector
-
-
Method Details
-
getBox
- Returns:
- the box
-
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:
ray
- ray to check- Returns:
- true, if ray hits the entity
-
setBox
- Parameters:
box
- the box to set
-