Package toxi.geom
Class BoxIntersector
java.lang.Object
toxi.geom.BoxIntersector
- All Implemented Interfaces:
Intersector3D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBox()booleanintersectsRay(Ray3D ray) Checks if entity intersects with the given ray.void
-
Constructor Details
-
BoxIntersector
-
-
Method Details
-
getBox
- Returns:
- the box
-
getIntersectionData
- Specified by:
getIntersectionDatain interfaceIntersector3D- Returns:
- intersection data parcel
-
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
-
setBox
- Parameters:
box- the box to set
-