Package org.pepstock.charba.client.geo
Class Coordinates
- java.lang.Object
-
- org.pepstock.charba.client.geo.Coordinates
-
public final class Coordinates extends Object
Contains the latitude and longitude, calculated byBaseGeoChart.projectionInvert(CoordinatesPoint)
andBaseGeoChart.projectionInvert(double, double)
.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLatitude()
Returns the latitude stored in the object.double
getLongitude()
Returns the longitude stored in the object.boolean
isConsistent()
Returnstrue
if the latitude and longitude are consistent and notNaN
.String
toString()
-
-
-
Method Detail
-
getLatitude
public double getLatitude()
Returns the latitude stored in the object.- Returns:
- the latitude value
-
getLongitude
public double getLongitude()
Returns the longitude stored in the object.- Returns:
- the longitude value
-
isConsistent
public boolean isConsistent()
Returnstrue
if the latitude and longitude are consistent and notNaN
.- Returns:
true
if the latitude and longitude are consistent and notNaN
-
-