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 doublegetLatitude()Returns the latitude stored in the object.doublegetLongitude()Returns the longitude stored in the object.booleanisConsistent()Returnstrueif the latitude and longitude are consistent and notNaN.StringtoString()
-
-
-
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()
Returnstrueif the latitude and longitude are consistent and notNaN.- Returns:
trueif the latitude and longitude are consistent and notNaN
-
-