vooga.physicsEngine.geometry.intersections
Class PolygonPolygonIntersector

java.lang.Object
  extended by vooga.physicsEngine.geometry.intersections.PolygonPolygonIntersector
All Implemented Interfaces:
Intersector

public class PolygonPolygonIntersector
extends java.lang.Object
implements Intersector

Class that implements intersection of polygons.

Author:
Sami Boghos

Constructor Summary
PolygonPolygonIntersector(GeometricParameters bodyA, GeometricParameters bodyB)
          Create a polygon-polygon intersector
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonPolygonIntersector

public PolygonPolygonIntersector(GeometricParameters bodyA,
                                 GeometricParameters bodyB)
Create a polygon-polygon intersector

Parameters:
bodyA - First polygon body
bodyB - Second polygon body
Method Detail

findIntersections

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

Specified by:
findIntersections in interface Intersector
Returns:
a list of intersections