Package toxi.geom
Interface Intersector2D
- All Known Implementing Classes:
CircleIntersector
public interface Intersector2D
Generic interface for ray intersection with 2D geometry
-
Method Summary
Modifier and TypeMethodDescriptionboolean
intersectsRay
(Ray2D ray) Check if entity intersects with the given ray
-
Method Details
-
getIntersectionData
IsectData2D getIntersectionData()- Returns:
- intersection data parcel
-
intersectsRay
Check if entity intersects with the given ray- Parameters:
ray
- ray to check- Returns:
- true, if ray hits the entity
-