Package org.djutils.math
Class AngleUtilTest
java.lang.Object
org.djutils.math.AngleUtilTest
AngleUtilTest tests the angle normalization methods in AngleUtil.
Copyright (c) 2020-2025 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-2025 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringprintAngle(double angle) Format an angle.voidTest angle epsilonEquals.voidTest angle interpolation.voidTest angle normalization.voidTest the interpolateShortest method.
-
Constructor Details
-
AngleUtilTest
public AngleUtilTest()
-
-
Method Details
-
testAngleNormalization
Test angle normalization. -
testAngleEpsilonEquals
Test angle epsilonEquals. -
testAngleInterpolate
Test angle interpolation. -
testInterpolateShortest
Test the interpolateShortest method. -
printAngle
Format an angle.- Parameters:
angle- angle in radians- Returns:
- fixed width text representation of angle
-