com.metsci.glimpse.charts.shoreline
Class LandVertex
java.lang.Object
com.metsci.glimpse.charts.shoreline.LandVertex
public class LandVertex
- extends java.lang.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
Field Summary |
double |
lat
|
double |
lon
|
Constructor Summary |
LandVertex(double lat_DEG,
double lon_DEG)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
lat
public final double lat
lon
public final double lon
LandVertex
public LandVertex(double lat_DEG,
double lon_DEG)
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)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2012 Metron, Inc.. All Rights Reserved.