testing.physicsEngine
Class PolygonPolygonIntersectorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by testing.physicsEngine.PolygonPolygonIntersectorTest
All Implemented Interfaces:
junit.framework.Test

public class PolygonPolygonIntersectorTest
extends junit.framework.TestCase

Tests the intersection between polygons.

Author:
Sami Boghos

Constructor Summary
PolygonPolygonIntersectorTest()
           
 
Method Summary
 void testOneIntersectionPoint()
          Test one intersection point
 void testOneIntersectionPoint1()
          Test one vertex intersection point
 void testTwoBoxes()
          Test two boxes with two intersection vertices (lines on top of each other)
 void testTwoBoxes1()
          Test two boxes intersection with vertex intersection and line intersection
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolygonPolygonIntersectorTest

public PolygonPolygonIntersectorTest()
Method Detail

testOneIntersectionPoint

public void testOneIntersectionPoint()
Test one intersection point


testOneIntersectionPoint1

public void testOneIntersectionPoint1()
Test one vertex intersection point


testTwoBoxes

public void testTwoBoxes()
Test two boxes with two intersection vertices (lines on top of each other)


testTwoBoxes1

public void testTwoBoxes1()
Test two boxes intersection with vertex intersection and line intersection