Java Double Number mod mod2pi_pos(double vin)

Here you can find the source of mod2pi_pos(double vin)

Description

modppos

License

Open Source License

Declaration

static private double mod2pi_pos(double vin) 

Method Source Code

//package com.java2s;

public class Main {
    static double twopi_inv = 0.5 / Math.PI;
    static double twopi = 2.0 * Math.PI;

    static private double mod2pi_pos(double vin) {
        double q = vin * twopi_inv + 0.5;
        int qi = (int) q;

        return vin - qi * twopi;
    }/*from www .j  a va2 s . c o  m*/
}

Related

  1. mod(double x, double y)
  2. mod(double x, double y)
  3. mod(double x, double y)
  4. mod(final double a, final double b)
  5. mod2pi(double vin)
  6. modArray(double value, int mod, int div)
  7. modifiedGramSchmidt(double[][] s)
  8. modifiedJulianToJulian(double modifiedJulian)
  9. modifySize(double[] x, int newLen)