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

    Fields
    Modifier and Type Field Description
    static double PI  
    static double PI_OVER_2  
    static double PI_OVER_3  
    static double PI_OVER_4  
    static double PI_OVER_5  
    static double PI_OVER_6  
    static double PI_OVER_7  
    static double PI_OVER_8  
    static double PI_TIMES_2  
    static double ZERO  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private AngleUtils()  
  • Method Summary

    Modifier and Type Method Description
    static double fixDeg​(double deg)  
    static double fixRad​(double rad)  
    static double toPiRads​(double radsWithoutPi)  
    static double toPiRads2​(double radsWithoutPi)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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)