vooga.physicsEngine.geometry.intersections
Interface Intersector

All Known Implementing Classes:
CircleCircleIntersector, CirclePolygonIntersector, JavaShapeIntersector, PolygonPolygonIntersector

public interface Intersector

Abstraction that finds the points of intersection between two objects. The geometries of the two objects are encapsulated in GeometricParameters. Since this is called many times in a game loop, to optimize for efficiency, different implementing classes exist for different types of geometric objects. The correct Intersector is fetched by IntersectorFactory.

Author:
Peng Shi

Method Summary
 java.util.List<Vector2f> findIntersections()
          Returns a list of intersections between the two geometric entities that is passed to the Intersector in the constructor.
 

Method Detail

findIntersections

java.util.List<Vector2f> findIntersections()
Returns a list of intersections between the two geometric entities that is passed to the Intersector in the constructor.

Returns:
a list of intersections