|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Coordinates
spice.basic.SphericalCoordinates
public class SphericalCoordinates
Class SphericalCoordinates represents sets of coordinates expressed in the spherical system: positions are specified by radius, colatitude, and longitude.
Longitude increases in the counterclockwise sense about the +Z axis. Colatitude of a point is the angular separation between the +Z axis and the vector from the origin to the point.
Version 1.0.0 28-NOV-2009 (NJB)
Field Summary |
---|
Fields inherited from class spice.basic.Coordinates |
---|
ALTITUDE, COLATITUDE, CYLINDRICAL, DECLINATION, GEODETIC, LATITUDE, LATITUDINAL, LONGITUDE, PLANETOGRAPHIC, RA, RADEC, RADIUS, RANGE, RECTANGULAR, SPHERICAL, X, Y, Z |
Constructor Summary | |
---|---|
SphericalCoordinates()
No-arguments constructor. |
|
SphericalCoordinates(double radius,
double colatitude,
double longitude)
Construct a SphericalCoordinates instance from a radius, colatitude, and longitude. |
|
SphericalCoordinates(SphericalCoordinates coords)
Copy constructor. |
|
SphericalCoordinates(Vector3 v)
Construct a SphericalCoordinates instance from a 3-vector. |
Method Summary | |
---|---|
double |
getColatitude()
Return colatitude in radians. |
double |
getLongitude()
Return longitude in radians. |
double |
getRadius()
Return radius. |
static Matrix33 |
getRecSphJacobian(Vector3 v)
Return the Jacobian matrix of the rectangular-to-spherical coordinate transformation at the point specified by a 3-vector. |
Matrix33 |
getSphRecJacobian()
Return the Jacobian matrix of the spherical-to-rectangular coordinate transformation at the point specified by this instance. |
Vector3 |
toRectangular()
Convert this instance to rectangular coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SphericalCoordinates()
public SphericalCoordinates(SphericalCoordinates coords)
This method creates a deep copy.
public SphericalCoordinates(double radius, double colatitude, double longitude) throws SpiceException
SpiceException
public SphericalCoordinates(Vector3 v) throws SpiceException
SpiceException
Method Detail |
---|
public double getRadius()
public double getLongitude()
public double getColatitude()
public Vector3 toRectangular() throws SpiceException
toRectangular
in class Coordinates
SpiceException
public Matrix33 getSphRecJacobian() throws SpiceException
SpiceException
public static Matrix33 getRecSphJacobian(Vector3 v) throws SpiceException
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |