|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.geoloc.Earth
public class Earth
Defines the shape of the earth ellipsoid.
Constructor Summary | |
---|---|
Earth()
Spherical earth with canonical radius. |
|
Earth(double radius)
Create a spherical earth. |
|
Earth(double equatorRadius,
double poleRadius,
double reciprocalFlattening)
Create an ellipsoidal earth. |
|
Earth(double equatorRadius,
double poleRadius,
double reciprocalFlattening,
String name)
_more_ |
Method Summary | |
---|---|
boolean |
equals(Object o)
_more_ |
double |
getEccentricity()
Get the Eccentricity property. |
double |
getEccentricitySquared()
Get the EccentricitySquared property. |
double |
getEquatorRadius()
Get the EquatorRadius property. |
double |
getFlattening()
Get the Flattening property. |
double |
getMajor()
Get the equatorial radius (semimajor axis) of the earth, in meters. |
double |
getMinor()
Get the polar radius (semiminor axis) of the earth, in meters. |
String |
getName()
Get the Name property. |
double |
getPoleRadius()
Get the PoleRadius property. |
static double |
getRadius()
Get radius of spherical earth, in meters |
void |
setEccentricity(double value)
Set the Eccentricity property. |
void |
setEccentricitySquared(double value)
Set the EccentricitySquared property. |
void |
setEquatorRadius(double value)
Set the EquatorRadius property. |
void |
setFlattening(double value)
Set the Flattening property. |
void |
setName(String value)
Set the Name property. |
void |
setPoleRadius(double value)
Set the PoleRadius property. |
String |
toString()
_more_ |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Earth()
public Earth(double radius)
radius
- radius of spherical earth.public Earth(double equatorRadius, double poleRadius, double reciprocalFlattening)
equatorRadius
- equatorial radius (semimajor axis) in meters, must be specifiedpoleRadius
- polar radius (semiminor axis) in metersreciprocalFlattening
- inverse flattening = 1/flattening = a / (a-b)public Earth(double equatorRadius, double poleRadius, double reciprocalFlattening, String name)
equatorRadius
- _more_poleRadius
- _more_reciprocalFlattening
- _more_name
- _more_Method Detail |
---|
public static double getRadius()
public double getMajor()
public double getMinor()
public void setName(String value)
value
- The new value for Namepublic String getName()
public void setEccentricity(double value)
value
- The new value for Eccentricitypublic double getEccentricity()
public void setEccentricitySquared(double value)
value
- The new value for EccentricitySquaredpublic double getEccentricitySquared()
public void setEquatorRadius(double value)
value
- The new value for EquatorRadiuspublic double getEquatorRadius()
public void setPoleRadius(double value)
value
- The new value for PoleRadiuspublic double getPoleRadius()
public void setFlattening(double value)
value
- The new value for Flatteningpublic double getFlattening()
public boolean equals(Object o)
equals
in class Object
o
- _more_
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |