public class NormalSquaredDistance extends Object implements DistanceStyle
Modifier and Type | Field and Description |
---|---|
static NormalSquaredDistance |
INSTANCE
A convenient instance
|
ARC, LINEAR, LINEAR_SQUARED, NORMAL, NORMAL_SQUARED
Constructor and Description |
---|
NormalSquaredDistance()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
computeDistance(GeoPoint point1,
double x2,
double y2,
double z2)
Compute the distance from a point to another point.
|
double |
computeDistance(GeoPoint point1,
GeoPoint point2)
Compute the distance from a point to another point.
|
double |
computeDistance(PlanetModel planetModel,
Plane plane,
double x,
double y,
double z,
Membership... bounds)
Compute the distance from a plane to a point.
|
double |
computeDistance(PlanetModel planetModel,
Plane plane,
GeoPoint point,
Membership... bounds)
Compute the distance from a plane to a point.
|
public static final NormalSquaredDistance INSTANCE
public double computeDistance(GeoPoint point1, GeoPoint point2)
DistanceStyle
computeDistance
in interface DistanceStyle
point1
- Starting pointpoint2
- Final pointpublic double computeDistance(GeoPoint point1, double x2, double y2, double z2)
DistanceStyle
computeDistance
in interface DistanceStyle
point1
- Starting pointx2
- Final point xy2
- Final point yz2
- Final point zpublic double computeDistance(PlanetModel planetModel, Plane plane, GeoPoint point, Membership... bounds)
DistanceStyle
computeDistance
in interface DistanceStyle
planetModel
- The planet modelplane
- The planepoint
- The pointbounds
- are the plane boundspublic double computeDistance(PlanetModel planetModel, Plane plane, double x, double y, double z, Membership... bounds)
DistanceStyle
computeDistance
in interface DistanceStyle
planetModel
- The planet modelplane
- The planex
- The point xy
- The point yz
- The point zbounds
- are the plane boundsCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.