|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SphericalPosition
A point in three dimensional space expressed in terms of latitude, longitude, and distance from an origin.
Version Info:
$Revision: 1118 $ |
$Date: 2008-02-26 10:52:29 -0700 (Tue, 26 Feb 2008) $ |
$Author: dharland $ (last person to modify) |
Method Summary | |
---|---|
SphericalPosition |
clone()
Returns a copy of this position. |
Angle |
getAngularSeparation(SphericalPosition other)
Calculates the current angular separation between this position and other . |
Distance |
getDistance()
Returns the current distance of this position from an origin. |
Distance |
getDistanceUncertainty()
Returns the uncertainty in the distance of this position. |
Latitude |
getLatitude()
Returns the current latitude of this position. |
Latitude |
getLatitudeUncertainty()
Returns the uncertainty in the latitude of this position. |
Longitude |
getLongitude()
Returns the current longitude of this position. |
Longitude |
getLongitudeUncertainty()
Returns the uncertainty in the longitude of this position. |
Method Detail |
---|
Longitude getLongitude()
Classes that implement this interface are free to choose whether to return a reference to their internal longitudes, or to provide copies thereof. This means that clients of this interface should not write code that manipulates the returned object and relies on those changes being reflected in this object, unless they know they are using an implementation that returns internal references.
Latitude getLatitude()
Classes that implement this interface are free to choose whether to return a reference to their internal latitudes, or to provide copies thereof. This means that clients of this interface should not write code that manipulates the returned object and relies on those changes being reflected in this object, unless they know they are using an implementation that returns internal references.
Distance getDistance()
Classes that implement this interface are free to choose whether to return a reference to their internal distances, or to provide copies thereof. This means that clients of this interface should not write code that manipulates the returned object and relies on those changes being reflected in this object, unless they know they are using an implementation that returns internal references.
Longitude getLongitudeUncertainty()
Classes that implement this interface are free to choose whether to return a reference to their internal uncertainties, or to provide copies thereof. This means that clients of this interface should not write code that manipulates the returned object and relies on those changes being reflected in this object, unless they know they are using an implementation that returns internal references.
Latitude getLatitudeUncertainty()
Classes that implement this interface are free to choose whether to return a reference to their internal uncertainties, or to provide copies thereof. This means that clients of this interface should not write code that manipulates the returned object and relies on those changes being reflected in this object, unless they know they are using an implementation that returns internal references.
Distance getDistanceUncertainty()
Classes that implement this interface are free to choose whether to return a reference to their internal uncertainties, or to provide copies thereof. This means that clients of this interface should not write code that manipulates the returned object and relies on those changes being reflected in this object, unless they know they are using an implementation that returns internal references.
Angle getAngularSeparation(SphericalPosition other)
other
.
The distances of the positions from the center of the sphere are
not considered. The returned angle is the smallest possible
such angle. It is the angular size of the arc of a great circle that
passes through both the ray from the orgin to this position and the
ray from the origin to other
.
The returned value is never negative. This means that the returned angle does not contain directional information. That is, the angle from A to B is exactly equal to the angle from B to A.
other
- a position from which this one is separated by the
returned angle.
other
.SphericalPosition clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |