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