Class Angle
- java.lang.Object
-
- nl.tudelft.simulation.language.d2.Angle
-
public final class Angle extends Object
The Angle class presents a number of mathematical utility functions on the angle. For now, the class only implements static helper methods. No instances of the class should be made now.Copyright (c) 2003-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Alexander Verbraeck
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublenormalize2Pi(double angle)Normalize an angle between 0 and 2*pi.static doublenormalizePi(double angle)Normalize an angle between -pi and +pi.
-
-
-
Method Detail
-
normalize2Pi
public static double normalize2Pi(double angle)
Normalize an angle between 0 and 2*pi.- Parameters:
angle- double; the angle to normalize- Returns:
- normalized angle
-
normalizePi
public static double normalizePi(double angle)
Normalize an angle between -pi and +pi.- Parameters:
angle- double; the angle to normalize- Returns:
- normalized angle
-
-