us.ihmc.utilities.math.geometry
Class GeometryToolsTest

java.lang.Object
  extended by us.ihmc.utilities.math.geometry.GeometryToolsTest

public class GeometryToolsTest
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2006

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
GeometryToolsTest()
           
 
Method Summary
 void illegalPythagorasGetCathetus()
           
 void isFormingTriangleFailTest()
           
 void isFormingTriangleSameSidedTest()
           
 void setUp()
           
 void tearDown()
           
 void testAngleByLawOfCosineWithEqualLengthTriangle()
           
 void testAngleByLawOfCosineWithNegativeSideLengthA()
           
 void testAngleByLawOfCosineWithNegativeSideLengthB()
           
 void testAngleByLawOfCosineWithNegativeSideLengthC()
           
 void testAveragePoints()
           
 void testAveragePoints1()
           
 void testAveragePoints2()
           
 void testCombine()
           
 void testDistanceBetweenPoints()
           
 void testDistanceBetweenPolygonsIntersectingPolygons()
           
 void testDistanceBetweenPolygonsMultiplePossibleAnswers()
           
 void testDistanceBetweenPolygonsNegativeAngle()
           
 void testDistanceBetweenPolygonsNegativeAngle2()
           
 void testDistanceBetweenPolygonsNegativeAngleAndTwoVisibleVerticesOnPolygon1()
           
 void testDistanceBetweenPolygonsOneOfTheAnglesIsZero()
           
 void testDistanceBetweenPolygonsParalellEdges()
           
 void testDistanceBetweenPolygonsPointOnEdge()
           
 void testDistanceBetweenPolygonsSharedPoint()
           
 void testDistanceBetweenPolygonsSolutionIsTwoVertices()
           
 void testDistanceBetweenPolygonsThirdQuadrant()
           
 void testDistanceBetweenPolygonsTriangles()
           
 void testDistanceBetweenPolygonsTwoVisiblePoints()
           
 void testDistanceBetweenPolygonsTwoVisiblePoints2()
           
 void testDistanceFromPointToLine()
           
 void testDistanceFromPointToLine1()
           
 void testDistanceFromPointToLineSegment()
           
 void testDistanceLineSegment2dLineSegment2d()
           
 void testGetIntersectionBetweenLineAndPlane()
           
 void testGetIntersectionBetweenTwoLines()
           
 void testGetNormalToPlane()
           
 void testGetPerpendicularBisector()
           
 void testGetPerpendicularVector()
           
 void testGetPerpendicularVectorFromLineToPoint()
           
 void testGetPlaneNormalGivenThreePoints()
           
 void testGetPlaneNormalGivenThreePoints1()
           
 void testGetZPlanePerpendicularBisector()
           
 void testIsInsidePolygon()
           
 void testIsInsidePolygon2()
           
 void testIsPointOnLeftSideOfLine()
           
 void testIsPointOnLeftSideOfLine1()
           
 void testMovePointInsidePolygonAlongVector()
           
 void testSideLengthByLawOfCosineGreaterThanPiAngle()
           
 void testSideLengthByLawOfCosineNegativeSideLengthA()
           
 void testSideLengthByLawOfCosineNegativeSideLengthB()
           
 void testSideLengthByLawOfCosineWithEqualLengthTriangle()
           
 void testSideLengthByLawOfCosineWithEqualLengthTriangleNegativeAngle()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryToolsTest

public GeometryToolsTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Throws:
java.lang.Exception

testAveragePoints

public void testAveragePoints()

testAveragePoints1

public void testAveragePoints1()

testAveragePoints2

public void testAveragePoints2()

testDistanceBetweenPoints

public void testDistanceBetweenPoints()

testDistanceFromPointToLine

public void testDistanceFromPointToLine()

testDistanceFromPointToLine1

public void testDistanceFromPointToLine1()

testDistanceFromPointToLineSegment

public void testDistanceFromPointToLineSegment()

testGetIntersectionBetweenLineAndPlane

public void testGetIntersectionBetweenLineAndPlane()

testGetIntersectionBetweenTwoLines

public void testGetIntersectionBetweenTwoLines()

testGetNormalToPlane

public void testGetNormalToPlane()

testGetPerpendicularBisector

public void testGetPerpendicularBisector()

testGetPerpendicularVector

public void testGetPerpendicularVector()

testGetPerpendicularVectorFromLineToPoint

public void testGetPerpendicularVectorFromLineToPoint()

testGetPlaneNormalGivenThreePoints

public void testGetPlaneNormalGivenThreePoints()

testGetPlaneNormalGivenThreePoints1

public void testGetPlaneNormalGivenThreePoints1()

testGetZPlanePerpendicularBisector

public void testGetZPlanePerpendicularBisector()

testIsInsidePolygon

public void testIsInsidePolygon()

testIsInsidePolygon2

public void testIsInsidePolygon2()

testIsPointOnLeftSideOfLine

public void testIsPointOnLeftSideOfLine()

testIsPointOnLeftSideOfLine1

public void testIsPointOnLeftSideOfLine1()

testAngleByLawOfCosineWithNegativeSideLengthA

public void testAngleByLawOfCosineWithNegativeSideLengthA()

testAngleByLawOfCosineWithNegativeSideLengthB

public void testAngleByLawOfCosineWithNegativeSideLengthB()

testAngleByLawOfCosineWithNegativeSideLengthC

public void testAngleByLawOfCosineWithNegativeSideLengthC()

testAngleByLawOfCosineWithEqualLengthTriangle

public void testAngleByLawOfCosineWithEqualLengthTriangle()

testSideLengthByLawOfCosineNegativeSideLengthA

public void testSideLengthByLawOfCosineNegativeSideLengthA()

testSideLengthByLawOfCosineNegativeSideLengthB

public void testSideLengthByLawOfCosineNegativeSideLengthB()

testSideLengthByLawOfCosineGreaterThanPiAngle

public void testSideLengthByLawOfCosineGreaterThanPiAngle()

testSideLengthByLawOfCosineWithEqualLengthTriangle

public void testSideLengthByLawOfCosineWithEqualLengthTriangle()

testSideLengthByLawOfCosineWithEqualLengthTriangleNegativeAngle

public void testSideLengthByLawOfCosineWithEqualLengthTriangleNegativeAngle()

isFormingTriangleFailTest

public void isFormingTriangleFailTest()

isFormingTriangleSameSidedTest

public void isFormingTriangleSameSidedTest()

illegalPythagorasGetCathetus

public void illegalPythagorasGetCathetus()

testDistanceLineSegment2dLineSegment2d

public void testDistanceLineSegment2dLineSegment2d()

testCombine

public void testCombine()

testMovePointInsidePolygonAlongVector

public void testMovePointInsidePolygonAlongVector()

testDistanceBetweenPolygonsNegativeAngle

public void testDistanceBetweenPolygonsNegativeAngle()

testDistanceBetweenPolygonsThirdQuadrant

public void testDistanceBetweenPolygonsThirdQuadrant()

testDistanceBetweenPolygonsNegativeAngleAndTwoVisibleVerticesOnPolygon1

public void testDistanceBetweenPolygonsNegativeAngleAndTwoVisibleVerticesOnPolygon1()

testDistanceBetweenPolygonsParalellEdges

public void testDistanceBetweenPolygonsParalellEdges()

testDistanceBetweenPolygonsMultiplePossibleAnswers

public void testDistanceBetweenPolygonsMultiplePossibleAnswers()

testDistanceBetweenPolygonsTwoVisiblePoints

public void testDistanceBetweenPolygonsTwoVisiblePoints()

testDistanceBetweenPolygonsTwoVisiblePoints2

public void testDistanceBetweenPolygonsTwoVisiblePoints2()

testDistanceBetweenPolygonsOneOfTheAnglesIsZero

public void testDistanceBetweenPolygonsOneOfTheAnglesIsZero()

testDistanceBetweenPolygonsTriangles

public void testDistanceBetweenPolygonsTriangles()

testDistanceBetweenPolygonsSharedPoint

public void testDistanceBetweenPolygonsSharedPoint()

testDistanceBetweenPolygonsPointOnEdge

public void testDistanceBetweenPolygonsPointOnEdge()

testDistanceBetweenPolygonsNegativeAngle2

public void testDistanceBetweenPolygonsNegativeAngle2()

testDistanceBetweenPolygonsSolutionIsTwoVertices

public void testDistanceBetweenPolygonsSolutionIsTwoVertices()

testDistanceBetweenPolygonsIntersectingPolygons

public void testDistanceBetweenPolygonsIntersectingPolygons()