Package org.djutils.base
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-2021 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 Summary
Constructors Constructor Description AngleUtilTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
printAngle(double angle)
Format an angle.void
testAngleEpsilonEquals()
Test angle epsilonEquals.void
testAngleInterpolate()
Test angle interpolation.void
testAngleNormalization()
Test angle normalization.void
testInterpolateShortest()
Test the interpolateShortest method.
-
-
-
Method Detail
-
testAngleNormalization
public void testAngleNormalization()
Test angle normalization.
-
testAngleEpsilonEquals
public void testAngleEpsilonEquals()
Test angle epsilonEquals.
-
testAngleInterpolate
public void testAngleInterpolate()
Test angle interpolation.
-
testInterpolateShortest
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
-
-