Package me.wobblyyyy.pathfinder.geometry
Class AngleUtils
java.lang.Object
me.wobblyyyy.pathfinder.geometry.AngleUtils
public class AngleUtils
extends java.lang.Object
Utility class for dealing with angles in both radians and degrees.
- Since:
- 0.3.0
- Author:
- Colin Robertson
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
AngleUtils()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ZERO
public static final double ZERO- See Also:
- Constant Field Values
-
PI
public static final double PI- See Also:
- Constant Field Values
-
PI_TIMES_2
public static final double PI_TIMES_2- See Also:
- Constant Field Values
-
PI_OVER_2
public static final double PI_OVER_2- See Also:
- Constant Field Values
-
PI_OVER_3
public static final double PI_OVER_3- See Also:
- Constant Field Values
-
PI_OVER_4
public static final double PI_OVER_4- See Also:
- Constant Field Values
-
PI_OVER_5
public static final double PI_OVER_5- See Also:
- Constant Field Values
-
PI_OVER_6
public static final double PI_OVER_6- See Also:
- Constant Field Values
-
PI_OVER_7
public static final double PI_OVER_7- See Also:
- Constant Field Values
-
PI_OVER_8
public static final double PI_OVER_8- See Also:
- Constant Field Values
-
-
Constructor Details
-
AngleUtils
private AngleUtils()
-
-
Method Details
-
toPiRads
public static double toPiRads(double radsWithoutPi) -
toPiRads2
public static double toPiRads2(double radsWithoutPi) -
fixRad
public static double fixRad(double rad) -
fixDeg
public static double fixDeg(double deg)
-