|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.coordinate.Polar
org.jeospace.coordinate.Spherical
A concrete subclass of Polar implementing a spherical coordinate system.
Spherical coordinates are used in geo-centric (and other system-centric) applications such
as describing orbital positions.
In extending Polar:
the distance component is defined to be the radius from the origin of the system.
For further reference see: http://mathworld.wolfram.com/SphericalCoordinates.html
Longitude,
Latitude,
Length,
Cartesian,
Ellipsoidal,
Polar| Field Summary |
| Fields inherited from class org.jeospace.coordinate.Polar |
distance, latitude, longitude |
| Constructor Summary | |
Spherical()
Create a Spherical coordinate object with default parameters. |
|
Spherical(Cartesian cartesian)
Create a Spherical coordinate object that cooresponds to the given
Cartesian coordinate. |
|
Spherical(double longitudeDegrees,
double latitudeDegrees,
Length radius)
Create a Spherical coordinate object with the given parameters. |
|
Spherical(Longitude longitude,
Latitude latitude,
Length radius)
Create a Spherical coordinate object from the given objects. |
|
Spherical(Polar polar)
Construct a Spherical coordinate object from the argument
Polar coordinate. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare two Spherical coordinate objects for equality. |
Cartesian |
getCartesian()
Get the Cartesian representation of the Spherical coordinate. |
void |
getCartesian(Cartesian cartesian)
Get the Cartesian representation of the Spherical coordinate. |
Cartesian |
getCartesian(Length scale)
Get the Cartesian representation of the Spherical coordinate. |
void |
getVector(Spherical target,
Cartesian vector)
Get the Cartesian representation of the vector from this Spherical
coordinate object to a target Spherical coordinate object. |
Cartesian |
getVector(Spherical target,
Length scale)
Get the Cartesian representation of the vector from this Spherical
coordinate object to a target Spherical coordinate object. |
int |
hashCode()
Calculate the hashcode |
void |
set(Cartesian cartesian)
Set the Spherical coordinate object's components. |
void |
set(Polar polar)
Set the Spherical coordinate object's components. |
java.lang.String |
toString()
Return a string representation of this spherical coordinate. |
| Methods inherited from class org.jeospace.coordinate.Polar |
clear, getAngularSeparation, set, set, setToAntipode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Spherical()
Spherical coordinate object with default parameters.
public Spherical(Polar polar)
Spherical coordinate object from the argument
Polar coordinate.
polar - the Polar coordinate to represent as a
Spherical coordinate.public Spherical(Cartesian cartesian)
Spherical coordinate object that cooresponds to the given
Cartesian coordinate.
cartesian - the Cartesian coordinate to convert to a
Spherical representation.
public Spherical(double longitudeDegrees,
double latitudeDegrees,
Length radius)
Spherical coordinate object with the given parameters.
longitudeDegrees - the double value initializer for the Longitude componentlatitudeDegrees - the double value initializer for the Latitude componentradius - the Length component initializer
public Spherical(Longitude longitude,
Latitude latitude,
Length radius)
Spherical coordinate object from the given objects.
longitude - the Longitude component initializerlatitude - the Latitude component initializerradius - the Length component initializer| Method Detail |
public void set(Polar polar)
Spherical coordinate object's components.
set in class Polarpolar - the Polar coordinate to represent as an
Spherical coordinate.public void set(Cartesian cartesian)
Spherical coordinate object's components.
set in class Polarcartesian - the Cartesian coordinate to convert to a
Spherical representation.
public Cartesian getVector(Spherical target,
Length scale)
Cartesian representation of the vector from this Spherical
coordinate object to a target Spherical coordinate object.
target - the target Spherical coordinate object.scale - the Length object scale factor.
Cartesian coordinate representing the vector value.
public void getVector(Spherical target,
Cartesian vector)
Cartesian representation of the vector from this Spherical
coordinate object to a target Spherical coordinate object.
target - the target Spherical coordinate object.vector - the Cartesian coordinate to set to the vector value.public Cartesian getCartesian()
Cartesian representation of the Spherical coordinate.
getCartesian in class Polarpublic Cartesian getCartesian(Length scale)
Cartesian representation of the Spherical coordinate.
getCartesian in class Polarscale - the Length object scale factor.
public void getCartesian(Cartesian cartesian)
Cartesian representation of the Spherical coordinate.
getCartesian in class Polarcartesian - the Cartesian object to initialize.public int hashCode()
public boolean equals(java.lang.Object obj)
Spherical coordinate objects for equality. The result is
true if and only if the argument object is not null, is a
Spherical coordinate object and represents an identical position
as this Spherical coordinate object.
Two Spherical coordinate objects are equal only if it's constituent
Longitude, Latitude and Length objects are equal.
obj - the object to compare with
true if the Spherical coordinate objects are the same;
false otherwise.public java.lang.String toString()
toString in class Polar
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||