vooga.physicsEngine.geometry.intersections
Class IntersectorFactory

java.lang.Object
  extended by vooga.physicsEngine.geometry.intersections.IntersectorFactory

public class IntersectorFactory
extends java.lang.Object

Factory class that manufactures the correct Intersector for two given geometric objects.

Author:
Peng Shi, Sami Boghos

Constructor Summary
IntersectorFactory()
           
 
Method Summary
static Intersector createIntersector(GeometricParameters bodyA, GeometricParameters bodyB)
          Obtain a suitable Intersector object for two GeometricParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntersectorFactory

public IntersectorFactory()
Method Detail

createIntersector

public static Intersector createIntersector(GeometricParameters bodyA,
                                            GeometricParameters bodyB)
                                     throws IntersectionException
Obtain a suitable Intersector object for two GeometricParameters

Parameters:
bodyA -
bodyB -
Returns:
Appropriate intersector object
Throws:
IntersectionException