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 | 
MAX_X_POLE
Max X pole 
 | 
GeoPoint | 
MAX_Y_POLE
Max Y pole 
 | 
GeoPoint | 
MIN_X_POLE
Min X pole 
 | 
GeoPoint | 
MIN_Y_POLE
Min Y pole 
 | 
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 | 
getMaximumXValue()
Find the maximum x value. 
 | 
double | 
getMaximumYValue()
Find the maximum y value. 
 | 
double | 
getMaximumZValue()
Find the maximum z value. 
 | 
double | 
getMinimumMagnitude()
Find the minimum magnitude of all points on the ellipsoid. 
 | 
double | 
getMinimumXValue()
Find the minimum x value. 
 | 
double | 
getMinimumYValue()
Find the minimum y value. 
 | 
double | 
getMinimumZValue()
Find the minimum z value. 
 | 
int | 
hashCode()  | 
boolean | 
pointOnSurface(double x,
              double y,
              double z)
Check if point is on surface. 
 | 
boolean | 
pointOnSurface(Vector v)
Check if point is on surface. 
 | 
boolean | 
pointOutside(double x,
            double y,
            double z)
Check if point is outside surface. 
 | 
boolean | 
pointOutside(Vector v)
Check if point is outside surface. 
 | 
double | 
surfaceDistance(GeoPoint pt1,
               GeoPoint pt2)
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 final GeoPoint MIN_X_POLE
public final GeoPoint MAX_X_POLE
public final GeoPoint MIN_Y_POLE
public final GeoPoint MAX_Y_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 getMinimumXValue()
public double getMaximumXValue()
public double getMinimumYValue()
public double getMaximumYValue()
public double getMinimumZValue()
public double getMaximumZValue()
public boolean pointOnSurface(Vector v)
v - is the point to check.public boolean pointOnSurface(double x,
                     double y,
                     double z)
x - is the x coord.y - is the y coord.z - is the z coord.public boolean pointOutside(Vector v)
v - is the point to check.public boolean pointOutside(double x,
                   double y,
                   double z)
x - is the x coord.y - is the y coord.z - is the z coord.public double surfaceDistance(GeoPoint pt1, GeoPoint pt2)
pt1 - is the first point.pt2 - is the second point.GeoPoint.arcDistance(GeoPoint)Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.