org.shapelogic.polygon
Class Calculator2DTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.shapelogic.polygon.Calculator2DTest
All Implemented Interfaces:
junit.framework.Test

public class Calculator2DTest
extends junit.framework.TestCase

Author:
Sami Badawi

Constructor Summary
Calculator2DTest()
           
 
Method Summary
 void testAddLines()
           
 void testCrossProduct()
           
 void testDirectionBetweenNeighborPoints()
           
 void testDistanceOfPointToLine()
          This is signed
 void testDotProduct()
           
 void testHatPoint()
           
 void testIntersectionOfLines()
           
 void testIntersectionOfLinesDouble()
           
 void testIntersectionOfLinesInt()
           
 void testInverseLine()
           
 void testLinesParallel(org.shapelogic.polygon.CLine line1, org.shapelogic.polygon.CLine line2)
           
 void testPointToLine()
           
 void testProjectionOfPointOnLine()
           
 void testScaleLineFromStartPoint()
           
 void testToCPointDouble()
           
 void testToCPointInt()
           
 void testToCPointIntIfPossible()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Calculator2DTest

public Calculator2DTest()
Method Detail

testHatPoint

public void testHatPoint()

testDotProduct

public void testDotProduct()

testCrossProduct

public void testCrossProduct()

testDistanceOfPointToLine

public void testDistanceOfPointToLine()
This is signed


testScaleLineFromStartPoint

public void testScaleLineFromStartPoint()

testPointToLine

public void testPointToLine()

testProjectionOfPointOnLine

public void testProjectionOfPointOnLine()

testInverseLine

public void testInverseLine()

testAddLines

public void testAddLines()

testIntersectionOfLines

public void testIntersectionOfLines()

testIntersectionOfLinesDouble

public void testIntersectionOfLinesDouble()

testToCPointDouble

public void testToCPointDouble()

testToCPointInt

public void testToCPointInt()

testToCPointIntIfPossible

public void testToCPointIntIfPossible()

testLinesParallel

public void testLinesParallel(org.shapelogic.polygon.CLine line1,
                              org.shapelogic.polygon.CLine line2)

testIntersectionOfLinesInt

public void testIntersectionOfLinesInt()

testDirectionBetweenNeighborPoints

public void testDirectionBetweenNeighborPoints()


Copyright © 2009. All Rights Reserved.