testing.physicsEngine
Class JavaShapeIntersectorTest
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaShapeIntersectorTest
public JavaShapeIntersectorTest()
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)