Class AngleUtilTest

java.lang.Object
org.djutils.base.AngleUtilTest

public class AngleUtilTest extends Object
AngleUtilTest tests the angle normalization methods in AngleUtil.

Copyright (c) 2020-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
Author:
Alexander Verbraeck, Peter Knoppers
  • Constructor Details

    • AngleUtilTest

      public AngleUtilTest()
  • Method Details

    • testAngleNormalization

      @Test public void testAngleNormalization()
      Test angle normalization.
    • testAngleEpsilonEquals

      @Test public void testAngleEpsilonEquals()
      Test angle epsilonEquals.
    • testAngleInterpolate

      @Test public void testAngleInterpolate()
      Test angle interpolation.
    • testInterpolateShortest

      @Test public void testInterpolateShortest()
      Test the interpolateShortest method.
    • printAngle

      public static String printAngle(double angle)
      Format an angle.
      Parameters:
      angle - double; angle in radians
      Returns:
      String; fixed width text representation of angle