Package org.djutils.draw.point
Class Point2dTest
- java.lang.Object
-
- org.djutils.draw.point.Point2dTest
-
public class Point2dTest extends Object
Point2dTest.java.Copyright (c) 2020-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Constructor Summary
Constructors Constructor Description Point2dTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
circleIntersectionTest()
Test the circleIntersection method.void
testClosestPointOnSegmentAndLine()
Test the closestPointOnSegment and the closestPointOnLine methods.void
testDirection()
Test the direction method.void
testIntersectionOfLines()
Test the intersectionOfLines method.void
testIntersectionOfLineSegments()
Test the intersectionOfLineSegments method.void
testPoint2dConstruction()
Test the Point2d construction methods.void
testPoint2dOperators()
Test the Point2d operators.void
testPoint2dOperatorsNPE()
Test the Point2d operators for NPE.
-
-
-
Method Detail
-
testPoint2dConstruction
public void testPoint2dConstruction()
Test the Point2d construction methods.
-
testPoint2dOperators
public void testPoint2dOperators()
Test the Point2d operators.
-
testPoint2dOperatorsNPE
public void testPoint2dOperatorsNPE()
Test the Point2d operators for NPE.
-
testIntersectionOfLineSegments
public void testIntersectionOfLineSegments()
Test the intersectionOfLineSegments method.
-
testIntersectionOfLines
public void testIntersectionOfLines()
Test the intersectionOfLines method.
-
testClosestPointOnSegmentAndLine
public void testClosestPointOnSegmentAndLine() throws DrawRuntimeException
Test the closestPointOnSegment and the closestPointOnLine methods.- Throws:
DrawRuntimeException
- if that happens uncaught; this test has failed
-
circleIntersectionTest
public void circleIntersectionTest()
Test the circleIntersection method.
-
testDirection
public void testDirection()
Test the direction method.
-
-