Package llnl.gnem.core.util.Geometry
Class GeodeticCoordinate
java.lang.Object
llnl.gnem.core.util.Geometry.GeodeticCoordinate
-
Constructor Summary
ConstructorDescriptionGeodeticCoordinate
(double lat, double lon, double depth) Constructs a GeodeticCoordinate from lat, lon, depth.GeodeticCoordinate
(double lat, double lon, double depth, double elevKm) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static GeodeticCoordinate
getCentroid
(Collection<GeodeticCoordinate> values) double
double
double
getLat()
double
getLon()
int
hashCode()
toString()
-
Constructor Details
-
GeodeticCoordinate
public GeodeticCoordinate() -
GeodeticCoordinate
public GeodeticCoordinate(double lat, double lon, double depth) Constructs a GeodeticCoordinate from lat, lon, depth.- Parameters:
lat
-lon
-depth
- Depth is in km with positive down. Depth = 0 is on the ellipsoid.
-
GeodeticCoordinate
public GeodeticCoordinate(double lat, double lon, double depth, double elevKm) -
GeodeticCoordinate
-
-
Method Details
-
getCentroid
-
getLat
public double getLat() -
getLon
public double getLon() -
getDepthKm
public double getDepthKm() -
getElevationKm
public double getElevationKm() -
hashCode
public int hashCode() -
equals
-
toString
-