testing.physicsEngine
Class JavaShapeIntersectorTest

java.lang.Object
  extended by testing.physicsEngine.JavaShapeIntersectorTest

public class JavaShapeIntersectorTest
extends java.lang.Object

Checks if intersection between JavaShapes is correct. This does not user Asserts because sometimes the code retains multiple intersection points very close the real intersection, and a qualitative test is easiest.

Author:
Peng Shi

Constructor Summary
JavaShapeIntersectorTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void testCircleIntersection()
          Tests the intersection of circles.
 void testRectangleIntersection()
          Tests the intersection of a circle and a rectangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaShapeIntersectorTest

public JavaShapeIntersectorTest()
Method Detail

testCircleIntersection

public void testCircleIntersection()
Tests the intersection of circles.


testRectangleIntersection

public void testRectangleIntersection()
Tests the intersection of a circle and a rectangle.


main

public static void main(java.lang.String[] args)