vooga.physicsEngine.geometry.intersections
Class CircleCircleIntersector

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

public class CircleCircleIntersector
extends java.lang.Object
implements Intersector

Handles the intersection between two circles.

Author:
Sami Boghos

Constructor Summary
CircleCircleIntersector(GeometricParameters bodyA, GeometricParameters bodyB)
          Create a circle-circle intersector object
 
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

CircleCircleIntersector

public CircleCircleIntersector(GeometricParameters bodyA,
                               GeometricParameters bodyB)
Create a circle-circle intersector object

Parameters:
bodyA - First circle body
bodyB - Second 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