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 voidcircleIntersectionTest()Test the circleIntersection method.voidtestClosestPointOnSegmentAndLine()Test the closestPointOnSegment and the closestPointOnLine methods.voidtestDirection()Test the direction method.voidtestIntersectionOfLines()Test the intersectionOfLines method.voidtestIntersectionOfLineSegments()Test the intersectionOfLineSegments method.voidtestPoint2dConstruction()Test the Point2d construction methods.voidtestPoint2dOperators()Test the Point2d operators.voidtestPoint2dOperatorsNPE()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 DrawRuntimeExceptionTest 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.
-
-