Class PolyLine3dTest

java.lang.Object
org.djutils.draw.line.PolyLine3dTest

public class PolyLine3dTest extends Object
TestLine3d.java.

Copyright (c) 2020-2025 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, Wouter Schakel
  • Constructor Details

    • PolyLine3dTest

      public PolyLine3dTest()
  • Method Details

    • constructorsTest

      @Test public final void constructorsTest()
      Test the constructors of PolyLine3d.
    • printPath2D

      public final void printPath2D(Path2D path)
      Print a Path2D to the console.
      Parameters:
      path - the path
    • testConstructors

      @Test public void testConstructors()
      Test all constructors of a Line2d.
    • exceptionTest

      @Test public final void exceptionTest()
      Test that exception is thrown when it should be.
    • locationExtendedTest

      @Test public final void locationExtendedTest()
      Test the getLocationExtended method and friends.
    • filterTest

      @Test public final void filterTest()
      Test the filtering constructors.
    • equalsTest

      @Test public final void equalsTest()
      Test the equals method.
    • concatenateTest

      @Test public final void concatenateTest()
      Test the concatenate method.
    • reverseAndProjectTest

      @Test public final void reverseAndProjectTest()
      Test the reverse and project methods.
    • extractTest

      @Test public final void extractTest()
      Test the extract and extractFraction methods.
    • testOtherMethods

      @Test public final void testOtherMethods()
      Test other methods of PolyLine3d.
    • testFind

      Test the find method.
      Throws:
      SecurityException - if that happens uncaught; this test has failed
      NoSuchMethodException - if that happens uncaught; this test has failed
      InvocationTargetException - if that happens uncaught; this test has failed
      IllegalArgumentException - if that happens uncaught; this test has failed
      IllegalAccessException - if that happens uncaught; this test has failed
    • testTruncate

      @Test public final void testTruncate()
      Test the truncate method.
    • testExports

      @Test public void testExports()
      Test the debugging output methods.
    • testToStringHashCodeAndEquals

      @Test public void testToStringHashCodeAndEquals()
      Test the hashCode and Equals methods.
    • testProjectProblem

      @Test public void testProjectProblem()
      Test for a problem that occurred in OTS2.
    • testDegenerate

      @Test public void testDegenerate()
      Test the degenerate PolyLine3d.
    • marker

      public static String marker(double x, double y)
      Draw a X marker.
      Parameters:
      x - x location
      y - y location
      Returns:
      String
    • testOTS2Problem

      @Test public void testOTS2Problem()
      Problem with limited precision when getting location almost at end.