Class OTSLine3DTest


  • public class OTSLine3DTest
    extends java.lang.Object

    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 2 okt. 2015
    Author:
    Peter Knoppers
    • Constructor Detail

      • OTSLine3DTest

        public OTSLine3DTest()
    • Method Detail

      • printPath2D

        public final void printPath2D​(java.awt.geom.Path2D path)
        Print a Path2D to the console.
        Parameters:
        path - Path2D; the path
      • exceptionTest

        public final void exceptionTest()
                                 throws OTSGeometryException
        Test that exception is thrown when it should be.
        Throws:
        OTSGeometryException - should not happen; this test has failed if it does happen
      • locationExtendedTest

        public final void locationExtendedTest()
                                        throws OTSGeometryException
        Test the getLocationExtended method and friends.
        Throws:
        OTSGeometryException - should not happen; this test has failed if it does happen
      • concatenateTest

        public final void concatenateTest()
                                   throws OTSGeometryException
        Test the concatenate method.
        Throws:
        OTSGeometryException - should not happen; this test has failed if it does happen
      • noiseFilterRamerDouglasPeuckerTest

        public final void noiseFilterRamerDouglasPeuckerTest()
                                                      throws OTSGeometryException
        Test the noiseFilterRamerDouglasPeuker filter method.
        Throws:
        OTSGeometryException - if that happens uncaught, this test has failed
      • extractTest

        public final void extractTest()
                               throws OTSGeometryException
        Test the extract and extractFraction methods.
        Throws:
        OTSGeometryException - should not happen; this test has failed if it does happen
      • offsetLineTest

        public final void offsetLineTest()
                                  throws OTSGeometryException
        Test the offsetLine method. Only tests a few easy cases.
        Throws:
        OTSGeometryException - should not happen (if it does; this test has failed)
      • testFractionalProjection

        public final void testFractionalProjection()
                                            throws OTSGeometryException
        Tests the fractional projection method.
        Throws:
        OTSGeometryException - should not happen (if it does, this test has failed)
      • testFind

        public final void testFind()
                            throws OTSGeometryException,
                                   java.lang.NoSuchMethodException,
                                   java.lang.SecurityException,
                                   java.lang.IllegalAccessException,
                                   java.lang.IllegalArgumentException,
                                   java.lang.reflect.InvocationTargetException
        Test the find method.
        Throws:
        OTSGeometryException - if that happens uncaught; this test has failed
        java.lang.SecurityException - if that happens uncaught; this test has failed
        java.lang.NoSuchMethodException - if that happens uncaught; this test has failed
        java.lang.reflect.InvocationTargetException - if that happens uncaught; this test has failed
        java.lang.IllegalArgumentException - if that happens uncaught; this test has failed
        java.lang.IllegalAccessException - if that happens uncaught; this test has failed