|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.coordinate.Polar
An abstract base class for representing forms of 3 dimensional spherical polar
coordinates. Polar provides interfaces for transforming to
and from Cartesian coordinate representations and a base
implementation for Spherical and Ellipsoidal
coordinates.
For further reference see: http://mathworld.wolfram.com/SphericalCoordinates.html
Longitude,
Latitude,
Length,
Cartesian,
Spherical,
Ellipsoidal| Field Summary | |
Length |
distance
The distance component of the Polar coordinate |
Latitude |
latitude
The latitude component of the Polar coordinate |
Longitude |
longitude
The longitude component of the Polar coordinate |
| Constructor Summary | |
Polar()
Create a Polar coordinate object with default parameters. |
|
| Method Summary | |
void |
clear()
Clear the Polar coordinate components. |
Angle |
getAngularSeparation(Polar target)
Return the angular separation between this Polar
object and the argument. |
abstract Cartesian |
getCartesian()
Get the Cartesian representation of the Polar coordinate. |
abstract void |
getCartesian(Cartesian cartesian)
Get the Cartesian representation of the Polar coordinate. |
abstract Cartesian |
getCartesian(Length scale)
Get the Cartesian representation of the Polar coordinate. |
abstract void |
set(Cartesian cartesian)
Set the Polar coordinate object's components. |
void |
set(double longitudeDegrees,
double latitudeDegrees,
Length radius)
Set the Polar coordinate object's components. |
void |
set(Longitude longitude,
Latitude latitude,
Length radius)
Set the Polar coordinate object's components. |
void |
set(Polar polar)
Set the Polar coordinate object's components. |
void |
setToAntipode()
Set the Polar coordinate to it's antipode. |
java.lang.String |
toString()
Return a string representation of this polar coordinate of the form "longitude, latitude, distance". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final Longitude longitude
Polar coordinate
public final Latitude latitude
Polar coordinate
public final Length distance
Polar coordinate
| Constructor Detail |
public Polar()
Polar coordinate object with default parameters.
| Method Detail |
public abstract void set(Cartesian cartesian)
Polar coordinate object's components.
cartesian - the Cartesian coordinate to convert to a
Polar representation.
public void set(Longitude longitude,
Latitude latitude,
Length radius)
Polar coordinate object's components.
longitude - the Longitude component initializerlatitude - the Latitude component initializerradius - the Length component initializer
public void set(double longitudeDegrees,
double latitudeDegrees,
Length radius)
Polar coordinate object's components.
longitudeDegrees - the double value initializer for the Longitude componentlatitudeDegrees - the double value initializer for the Latitude componentradius - the Length component initializerpublic void set(Polar polar)
Polar coordinate object's components.
polar - the Polar coordinate object to duplicatepublic abstract Cartesian getCartesian()
Cartesian representation of the Polar coordinate.
public abstract Cartesian getCartesian(Length scale)
Cartesian representation of the Polar coordinate.
scale - the Length object scale factor.
public abstract void getCartesian(Cartesian cartesian)
Cartesian representation of the Polar coordinate.
cartesian - the Cartesian object to initialize.public Angle getAngularSeparation(Polar target)
Polar
object and the argument. The return value will always be
0 <= value <= Math.PI.
target - the argument Polar object
public void setToAntipode()
Polar coordinate to it's antipode.
public void clear()
Polar coordinate components.
public java.lang.String toString()
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||