|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.geometry.Ellipsoid
Ellipsoid is an immutable object that represents
a geometric shape also known as an oblate spheroid or an
ellipsoid of revolution.
For further reference see:
http://mathworld.wolfram.com/OblateSpheroid.html
| Constructor Summary | |
Ellipsoid()
Construct a default Ellipsoid object, a sphere of radius 1 km. |
|
Ellipsoid(Length semiMajorAxis,
double inverseFlattening,
java.lang.String id)
Construct an Ellipsoid object. |
|
Ellipsoid(Length semiMajorAxis,
Length semiMinorAxis,
java.lang.String id)
Construct an Ellipsoid object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare two Ellipsoids for equality. |
double |
getEllipticity()
Return the double value of the ellipsoid ellipticity parameter. |
double |
getEllipticitySquared()
Return the double value of the ellipsoid ellipticity^2 parameter. |
Length |
getEquatorialRadius()
Return the Length of the equatorial radius of the ellipsoid. |
double |
getFlattening()
Return the double value of the ellipsoid flattening parameter. |
java.lang.String |
getID()
Return the id string of this ellipsoid |
Length |
getPolarRadius()
Return the Length of the polar radius of the ellipsoid. |
Length |
getRadius(Latitude latitude)
Return a Length object representing the ellipsoidal radius
at the argument Latitude. |
int |
hashCode()
Calculate the hashcode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Ellipsoid()
Ellipsoid object, a sphere of radius 1 km.
public Ellipsoid(Length semiMajorAxis,
Length semiMinorAxis,
java.lang.String id)
Ellipsoid object.
semiMajorAxis - the equatorial ( Semi-Major Axis ) radius.semiMinorAxis - the polar ( Semi-Minor Axis ) radius.id - the id string
public Ellipsoid(Length semiMajorAxis,
double inverseFlattening,
java.lang.String id)
Ellipsoid object.
semiMajorAxis - the equatorial ( Semi-Major Axis ) radius.inverseFlattening - the inverse flattening of the ellipsoid.id - the id string| Method Detail |
public Length getEquatorialRadius()
Length of the equatorial radius of the ellipsoid.
Length of the equatorial radius of the ellipsoid.public Length getPolarRadius()
Length of the polar radius of the ellipsoid.
Length of the polar radius of the ellipsoid.public Length getRadius(Latitude latitude)
Length object representing the ellipsoidal radius
at the argument Latitude.
latitude - the ellipsoidal coordinate Latitude.
Length object.public double getFlattening()
public double getEllipticity()
public double getEllipticitySquared()
public java.lang.String getID()
public int hashCode()
public boolean equals(java.lang.Object obj)
Ellipsoids for equality. The result is true
if and only if the argument object is not null, is an Ellipsoid object
and represents a ellipsoid with identical parameters to this Ellipsoid.
Two Ellipsoid objects are equal only if the Length
objects representing the ellipsoid's radii are equal.
obj - the object to compare with
true if the Ellipsoids are equal;
false otherwise.
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||