public class Body
extends java.lang.Object
Use getInstance(int)
to get an instance of a body with a particular
NAIF ID; bodies are cached whenever the method is invoked.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.
|
double |
getAAxis()
Gets this body's A-axis.
|
double |
getBAxis()
Gets this body's B-axis.
|
double |
getCAxis()
Gets this body's C-axis.
|
double |
getFlattening()
Gets the flattening coefficient for this body.
|
static Body |
getInstance(int naifID)
Gets an instance of a body with the given NAIF ID.
|
int |
getNaifID()
Gets this body's NAIF ID.
|
java.lang.String |
getName()
Gets this body's name, as determined by its NAIF ID.
|
double |
getPlanetocentricLatitude(double planetographicLatitude)
Converts a planetographic latitude into a planetocentric latitude for this
body.
|
double |
getPlanetographicLatitude(double planetocentricLatitude)
Converts a planetocentric latitude into a planetographic latitude for this
body.
|
int |
hashCode()
Returns a hash code value for this stereo target.
|
static double |
normalizeLongitude(double longitude)
Computes the normalized longitude from the input longitude.
|
double[] |
radiiArray()
Gets this body's radii as an array.
|
static double |
reverseLongitude(double longitude)
Reverses a longitude from east-leading to west-leading or vice-versa.
|
java.lang.String |
toString()
Gets a string representation of this stereo target.
|
public static final java.lang.String ID
public final int getNaifID()
public final java.lang.String getName()
public final double getAAxis()
public final double getBAxis()
public final double getCAxis()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to which this object is compared.public double getFlattening()
f = 1.0 - (rp / re)
where rp is the polar radius
and
re is the equatorial radius
.
public double[] radiiArray()
A-axis
, the second is the B-axis
, and the
third is the C-axis
.public double getPlanetographicLatitude(double planetocentricLatitude)
planetocentricLatitude
- the planetocentric latitude in radians.public double getPlanetocentricLatitude(double planetographicLatitude)
planetographicLatitude
- the planetographic latitude in radians.public static double normalizeLongitude(double longitude)
longitude
- the input longitude.public static double reverseLongitude(double longitude)
longitude
- the longitude to be reversed, in radians.public static Body getInstance(int naifID)
naifID
- the NAIF ID of the body.edu.asu.jmars.layer.obs.mro.SpiceException
- if the SPICE kernel pool contains no body data for
naifID.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona