Package toxi.geom
Class CircleIntersector
java.lang.Object
toxi.geom.CircleIntersector
- All Implemented Interfaces:
Intersector2D
This class handles Circle-Ray2D intersections by implementing the
Intersector2D
interface.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
intersectsRay
(Ray2D ray) Check if entity intersects with the given rayvoid
-
Constructor Details
-
CircleIntersector
-
-
Method Details
-
getCircle
-
getIntersectionData
- Specified by:
getIntersectionData
in interfaceIntersector2D
- Returns:
- intersection data parcel
-
intersectsRay
Description copied from interface:Intersector2D
Check if entity intersects with the given ray- Specified by:
intersectsRay
in interfaceIntersector2D
- Parameters:
ray
- ray to check- Returns:
- true, if ray hits the entity
-
setCircle
-