vooga.physicsEngine.geometry.intersections
Class CirclePolygonIntersector

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

public class CirclePolygonIntersector
extends java.lang.Object
implements Intersector

Handles the intersection between a circle and a polygon.

Author:
Sami Boghos

Constructor Summary
CirclePolygonIntersector(GeometricParameters bodyA, GeometricParameters bodyB)
          Creates a polygon-circle 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

CirclePolygonIntersector

public CirclePolygonIntersector(GeometricParameters bodyA,
                                GeometricParameters bodyB)
Creates a polygon-circle intersector

Parameters:
bodyA - Polygon or circle body
bodyB - Polygon or circle 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