Java Radian From toRadians(int latitude)

Here you can find the source of toRadians(int latitude)

Description

to Radians

License

Open Source License

Declaration

public static double toRadians(int latitude) 

Method Source Code

//package com.java2s;
/*/* ww  w.  j  a  va2 s.  c o m*/
 * Copyright (c) 2009.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

public class Main {
    public static double toRadians(int latitude) {
        return toDegrees(latitude) * Math.PI / 180;
    }

    public static double toDegrees(int val) {
        return (double) val / ((1 << 24) / 360.0);
    }
}

Related

  1. toRadians(double angle)
  2. toRadians(double value)
  3. toRadians(double x)
  4. toRadians(final double value)
  5. toRadians(float a)
  6. toRadians(Integer angdeg)
  7. toRadix16(byte[] source, int srcOffset, int len)
  8. toRadix16(byte[] source, int srcOffset, int len)
  9. toRadixPrefix(int radix)