Java Long to longToX(double longitudeDegrees, double radius)

Here you can find the source of longToX(double longitudeDegrees, double radius)

Description

long To X

License

LGPL

Declaration

public static int longToX(double longitudeDegrees, double radius) 

Method Source Code

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

public class Main {
    public static int longToX(double longitudeDegrees, double radius) {
        double longitude = Math.toRadians(longitudeDegrees);
        return (int) (radius * longitude);
    }//from w w  w . j  a  v a  2  s  .co  m
}

Related

  1. longToRemoteAddrTo(long remoteAddr)
  2. longToSortableBytes(long value, byte[] result, int offset)
  3. longToStringAddress(long addr)
  4. longToStringWithZeroFill(long longValue, int width)
  5. longToTimeString(long time)
  6. longToX(double longitudeDegrees, double radius)
  7. longToX(final double longitude, final int zoom)
  8. longToZigZag(final long n)