Package org.opentrafficsim.core.geometry
Class OTSPoint3DTest
java.lang.Object
org.opentrafficsim.core.geometry.OTSPoint3DTest
public class OTSPoint3DTest
extends java.lang.Object
Test the methods in OTSPoint.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 30 sep. 2015
- Author:
- Peter Knoppers
-
Constructor Summary
Constructors Constructor Description OTSPoint3DTest()
-
Method Summary
Modifier and Type Method Description void
circleCenterTest()
Test the circleCenter method (and, implicitly, the normalize method).void
circleIntersectionsTest()
Test the circleIntersections method.void
closestPointTest()
Test the closestPointOnLine methods.void
constructorsTest()
Test the various constructors of OTSPoint3D.void
directionTest()
Test the horizontalDirection and horizontalDirectionSI methods.void
interpolateTest()
Test the interpolate method.void
lineSegmentIntersectionTest()
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
public final void closestPointTest() throws org.opentrafficsim.core.geometry.OTSGeometryExceptionTest the closestPointOnLine methods.- Throws:
org.opentrafficsim.core.geometry.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.
-