public class CotPoint
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static double |
UNDEFINED_ERROR_BOUND |
Constructor and Description |
---|
CotPoint()
Constructs object with default values
|
Modifier and Type | Method and Description |
---|---|
CotPoint |
clone()
Creates a new instance of a CotPoint with its values as copies of the
original.
|
double |
distanceToPoint(CotPoint point)
Provides the shortest two dimensional great circle distance in meters to the point provided.
|
boolean |
equals(java.lang.Object obj)
Compares this CotPoint to another CotPoint.
|
double |
getCircularError()
Returns the circular error (horizontal error in meters) associated with this CotPoint.
|
double |
getHAE()
Returns the height of the point
|
double |
getLatitude() |
double |
getLinearError()
Returns the linear error (vertical error in meters) associated with this CotPoint.
|
double |
getLongitude() |
int |
hashCode() |
boolean |
intersects(CotPoint point)
Determines whether or not the two points overlap given their error values
|
void |
setCircularError(double ce)
Replaces the circular error (horizontal error in meters) associated with this CotPoint
|
void |
setCircularErrorUndefined()
Sets the "ce" error to be undefined (9999999)
|
void |
setHAE(double heightAboveEllipsoid)
Replaces the height value of this CotPoint.
|
void |
setLatitude(double inLatitude)
Sets the latitude of the point.
|
void |
setLinearError(double le)
Replaces the linear error (vertical error in meters) associated with this CotPoint
|
void |
setLinearErrorUndefined()
Sets the "le" error to be undefined (9999999)
|
void |
setLongitude(double inLongitude)
Sets the longitude of the point
|
public static final double UNDEFINED_ERROR_BOUND
public double getLatitude()
public void setLatitude(double inLatitude)
inLatitude
- java.lang.IllegalArgumentException
- if the latitude is not between -90 and 90 inclusive.public double getLongitude()
public void setLongitude(double inLongitude)
inLongitude
- java.lang.IllegalArgumentException
- if the longitude is not between -180 and 180 inclusive.public double getHAE()
public void setHAE(double heightAboveEllipsoid)
heightAboveEllipsoid
- the WGS-84 height to be usedpublic double getCircularError()
public void setCircularError(double ce)
ce
- the double value representing the circular error (in meters) associated with this CotPointjava.lang.IllegalArgumentException
- if the provided error value is negativepublic double getLinearError()
public void setLinearError(double le)
le
- the double value representing the linear error (in meters) associated with this CotPointjava.lang.IllegalArgumentException
- if the provided error value is negativepublic void setCircularErrorUndefined()
public void setLinearErrorUndefined()
public boolean intersects(CotPoint point)
point
- the CotPoint to test withErrorBoundUndefinedException
- if this point or the specified point has an undefined error valuepublic double distanceToPoint(CotPoint point)
point
- the point to find the distance topublic CotPoint clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to be comparedpublic int hashCode()
hashCode
in class java.lang.Object