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 |
---|---|
GeoPoint |
bisection(GeoPoint pt1,
GeoPoint pt2)
Compute a GeoPoint that's a bisection between two other GeoPoints.
|
GeoPoint |
createSurfacePoint(double x,
double y,
double z)
Compute a GeoPoint that's based on (x,y,z) values, but is scaled to actually be on the planet surface.
|
GeoPoint |
createSurfacePoint(Vector vector)
Compute a GeoPoint that's scaled to actually be on the planet surface.
|
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 GeoPoint createSurfacePoint(Vector vector)
vector
- is the vector.public GeoPoint createSurfacePoint(double x, double y, double z)
x
- is the x value.y
- is the y value.z
- is the z value.public GeoPoint bisection(GeoPoint pt1, GeoPoint pt2)
pt1
- is the first point.pt2
- is the second point.public double surfaceDistance(GeoPoint pt1, GeoPoint pt2)
pt1
- is the first point.pt2
- is the second point.GeoPoint.arcDistance(Vector)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.