Package org.opentrafficsim.core.geometry
Class OtsPoint3DTest
java.lang.Object
org.opentrafficsim.core.geometry.OtsPoint3DTest
Test the methods in OTSPoint.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Peter Knoppers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the circleCenter method (and, implicitly, the normalize method).void
Test the circleIntersections method.final void
Test the closestPointOnLine methods.final void
Test the various constructors of OtsPoint3d.void
Test the horizontalDirection and horizontalDirectionSI methods.final void
Test the interpolate method.final void
Test the 2D line segment intersection method.
-
Constructor Details
-
OtsPoint3DTest
public OtsPoint3DTest()
-
-
Method Details
-
constructorsTest
public final void constructorsTest()Test the various constructors of OtsPoint3d. -
interpolateTest
public final void interpolateTest()Test the interpolate method. -
closestPointTest
Test the closestPointOnLine methods.- Throws:
OtsGeometryException
- should not happen; this test has failed if it does
-
lineSegmentIntersectionTest
public final void lineSegmentIntersectionTest()Test the 2D line segment intersection method. -
directionTest
public void directionTest()Test the horizontalDirection and horizontalDirectionSI methods. -
circleCenterTest
public void circleCenterTest()Test the circleCenter method (and, implicitly, the normalize method). -
circleIntersectionsTest
public void circleIntersectionsTest()Test the circleIntersections method.
-