data class WorldCoordinate
A latitude/longitude pair.
<init> |
WorldCoordinate(latitude: Double, longitude: Double)
A latitude/longitude pair. |
latitude |
val latitude: Double |
longitude |
val longitude: Double |
project |
fun project(screenWidth: Double, screenHeight: Double, topLatitude: Double, bottomLatitude: Double, leftLongitude: Double, rightLongitude: Double): Pair<Double, Double>
Convert to screen coordinates using the Mercator projection. You should have a world map image that you know the precise extents of for this function to work. |