Java Abs absDegrees(double degrees)

Here you can find the source of absDegrees(double degrees)

Description

abs Degrees

License

Open Source License

Declaration

public static double absDegrees(double degrees) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double absDegrees(double degrees) {
        if (degrees < 0) {
            for (int i = (int) Math.round(degrees / -360); i >= 0; i--) {
                degrees += 360;//ww  w  . j a  v  a 2  s .co  m
                ;
            }
        }
        return degrees % 360;
    }
}

Related

  1. abs_min(double a, double b)
  2. absAngleDifference(double angle1Radians, double angle2Radians)
  3. absApproximation(double x, double M)
  4. absCap(double value, double bounds)
  5. absClamp(double value, double bounds)
  6. absDelta(double a, double b)
  7. absDelta(float f1, float f2)
  8. absDiff(long x, long y)
  9. absHash(Object obj)