get Temperature By Longitude - Java java.lang

Java examples for java.lang:Math Convert

Description

get Temperature By Longitude

Demo Code


//package com.java2s;

public class Main {
    private static final int power = 174;

    public static double getTemperatureByLongitude(int longitude) {
        double temp = power * Math.cos(Math.toRadians(90d - longitude));
        return temp;
    }//from w  w  w . j a v  a 2  s . com
}

Related Tutorials