Java Angle Difference angleDiff(double alpha, double beta)

Here you can find the source of angleDiff(double alpha, double beta)

Description

angle Diff

License

LGPL

Declaration

public static double angleDiff(double alpha, double beta) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static double angleDiff(double alpha, double beta) {
        double angleDiff = alpha - beta;
        return ((((angleDiff) % (2 * Math.PI)) + (3 * Math.PI)) % (2 * Math.PI)) - Math.PI;
    }/*  ww w  .  j a v a 2s . com*/
}

Related

  1. angleDif(double a1, double a2)
  2. angleDif(float a, float b)
  3. angleDif(float a1, float a2)
  4. angleDiff(double a, double b)
  5. angleDiff(double angle1, double angle2, boolean normalized)
  6. angleDiff(final double a1, final double a2)
  7. angleDiff(float a, float b)
  8. angleDiff(int ang1, int ang2)