public class PlanetModel extends Object
Modifier and Type | Field and Description |
---|---|
double |
ab
The x/y scaling factor
|
double |
c
The z scaling factor
|
double |
flattening
The flattening value
|
double |
inverseAb
The inverse of ab
|
double |
inverseAbSquared
The square of the inverse of ab
|
double |
inverseC
The inverse of c
|
double |
inverseCSquared
The square of the inverse of c
|
GeoPoint |
NORTH_POLE
North pole
|
GeoPoint |
SOUTH_POLE
South pole
|
static PlanetModel |
SPHERE
Planet model corresponding to sphere.
|
double |
squareRatio
The square ratio
|
static PlanetModel |
WGS84
Planet model corresponding to WGS84
|
static double |
WGS84_EQUATORIAL
Equatorial radius
|
static double |
WGS84_MEAN
Mean radius
|
static double |
WGS84_POLAR
Polar radius
|
Constructor and Description |
---|
PlanetModel(double ab,
double c)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getMaximumMagnitude()
Find the maximum magnitude of all points on the ellipsoid.
|
double |
getMinimumMagnitude()
Find the minimum magnitude of all points on the ellipsoid.
|
int |
hashCode() |
double |
surfaceDistance(GeoPoint p1,
GeoPoint p2)
Compute surface distance between two points.
|
String |
toString() |
public static final PlanetModel SPHERE
public static final double WGS84_MEAN
public static final double WGS84_POLAR
public static final double WGS84_EQUATORIAL
public static final PlanetModel WGS84
public final double ab
public final double c
public final double inverseAb
public final double inverseC
public final double inverseAbSquared
public final double inverseCSquared
public final double flattening
public final double squareRatio
public final GeoPoint NORTH_POLE
public final GeoPoint SOUTH_POLE
public PlanetModel(double ab, double c)
ab
- is the x/y scaling factor.c
- is the z scaling factor.public double getMinimumMagnitude()
public double getMaximumMagnitude()
public double surfaceDistance(GeoPoint p1, GeoPoint p2)
p1
- is the first point.p2
- is the second point.GeoPoint.arcDistance(GeoPoint)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.