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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintersectsRay(Ray2D ray) Check if entity intersects with the given rayvoid
-
Constructor Details
-
CircleIntersector
-
-
Method Details
-
getCircle
-
getIntersectionData
- Specified by:
getIntersectionDatain interfaceIntersector2D- Returns:
- intersection data parcel
-
intersectsRay
Description copied from interface:Intersector2DCheck if entity intersects with the given ray- Specified by:
intersectsRayin interfaceIntersector2D- Parameters:
ray- ray to check- Returns:
- true, if ray hits the entity
-
setCircle
-