toxi.geom
Interface Intersector2D

All Known Implementing Classes:
CircleIntersector

public interface Intersector2D

Generic interface for ray intersection with 2D geometry


Method Summary
 IsectData2D getIntersectionData()
           
 boolean intersectsRay(Ray2D ray)
          Check if entity intersects with the given ray
 

Method Detail

getIntersectionData

IsectData2D getIntersectionData()
Returns:
intersection data parcel

intersectsRay

boolean intersectsRay(Ray2D ray)
Check if entity intersects with the given ray

Parameters:
ray - ray to check
Returns:
true, if ray hits the entity