Package org.djutils.base
Class AngleUtilTest
java.lang.Object
org.djutils.base.AngleUtilTest
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.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
printAngle
(double angle) Format an angle.void
Test angle epsilonEquals.void
Test angle interpolation.void
Test angle normalization.void
Test the interpolateShortest method.
-
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
Format an angle.- Parameters:
angle
- double; angle in radians- Returns:
- String; fixed width text representation of angle
-