Class LandVertex
- java.lang.Object
-
- com.metsci.glimpse.charts.shoreline.LandVertex
-
public class LandVertex extends Object
LandVertex is a bare-bones lat/lon class, lacking most nice features of LatLon. It is necessary because LatLons normalize themselves, which causes land polygons to wrap poorly around the 180 degree longitude line. Lat and lon are stored in unnormalized degrees.- Author:
- hogye
-
-
Constructor Summary
Constructors Constructor Description LandVertex(double lat_DEG, double lon_DEG)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)doublegetDistanceX_SU(double longitude)Returns signed east-west distance from this vertex to the given longitude.doublegetDistanceX_SU(LandVertex vertex)doublegetDistanceY_SU(double latitude)Returns signed north-south distance from this vertex to the given latitude.doublegetDistanceY_SU(LandVertex vertex)inthashCode()
-
-
-
Method Detail
-
getDistanceX_SU
public double getDistanceX_SU(double longitude)
Returns signed east-west distance from this vertex to the given longitude. The latitude of this vertex is used in converting longitudinal degrees to distance.
-
getDistanceX_SU
public double getDistanceX_SU(LandVertex vertex)
-
getDistanceY_SU
public double getDistanceY_SU(double latitude)
Returns signed north-south distance from this vertex to the given latitude.
-
getDistanceY_SU
public double getDistanceY_SU(LandVertex vertex)
-
-