- java.lang.Object
-
- spice.basic.Coordinates
-
- spice.basic.LatitudinalCoordinates
-
public class LatitudinalCoordinates extends Coordinates
Class LatitudinalCoordinates represents sets of coordinates expressed in the "latitudinal" system: positions are specified by radius, longitude and latitude.Longitude increases in the counterclockwise sense about the +Z axis. Latitude of a point is the angle between the X-Y plane and the vector from the origin to the point.
Version 1.0.0 28-NOV-2009 (NJB)
-
-
Field Summary
Fields Modifier and Type Field Description private double
latitude
private double
longitude
private double
radius
-
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
Constructors Constructor Description LatitudinalCoordinates()
No-arguments constructor.LatitudinalCoordinates(double radius, double longitude, double latitude)
Construct a LatitudinalCoordinates instance from a radius, longitude, and latitude.Angular units are radians.LatitudinalCoordinates(LatitudinalCoordinates coords)
Copy constructor.LatitudinalCoordinates(Vector3 v)
Construct a LatitudinalCoordinates instance from a 3-vector.
-
Method Summary
Modifier and Type Method Description double
getLatitude()
Return latitude in radians.Matrix33
getLatRecJacobian()
Return the Jacobian matrix of the latitudinal-to-rectangular coordinate transformation at the point specified by this instance.double
getLongitude()
Return longitude in radians.double
getRadius()
Return radius.static Matrix33
getRecLatJacobian(Vector3 v)
Return the Jacobian matrix of the rectangular-to-latitudinal coordinate transformation at the point specified by a 3-vector.Vector3
toRectangular()
Convert this instance to rectangular coordinates.
-
-
-
Constructor Detail
-
LatitudinalCoordinates
public LatitudinalCoordinates()
No-arguments constructor.
-
LatitudinalCoordinates
public LatitudinalCoordinates(LatitudinalCoordinates coords)
Copy constructor.This method creates a deep copy.
- Parameters:
coords
- LatitudinalCoordinates
-
LatitudinalCoordinates
public LatitudinalCoordinates(double radius, double longitude, double latitude) throws SpiceException
Construct a LatitudinalCoordinates instance from a radius, longitude, and latitude.Angular units are radians.- Parameters:
radius
- doublelatitude
- doublelongitude
- double- Throws:
SpiceException
- exception
-
LatitudinalCoordinates
public LatitudinalCoordinates(Vector3 v) throws SpiceException
Construct a LatitudinalCoordinates instance from a 3-vector.- Parameters:
v
- Vector3- Throws:
SpiceException
- exception
-
-
Method Detail
-
getRadius
public double getRadius()
Return radius.- Returns:
- double
-
getLongitude
public double getLongitude()
Return longitude in radians.- Returns:
- double
-
getLatitude
public double getLatitude()
Return latitude in radians.- Returns:
- double
-
toRectangular
public Vector3 toRectangular() throws SpiceException
Convert this instance to rectangular coordinates.- Specified by:
toRectangular
in classCoordinates
- Returns:
- Vector3
- Throws:
SpiceException
- exception
-
getLatRecJacobian
public Matrix33 getLatRecJacobian() throws SpiceException
Return the Jacobian matrix of the latitudinal-to-rectangular coordinate transformation at the point specified by this instance.- Returns:
- Matrix33
- Throws:
SpiceException
- exception
-
getRecLatJacobian
public static Matrix33 getRecLatJacobian(Vector3 v) throws SpiceException
Return the Jacobian matrix of the rectangular-to-latitudinal coordinate transformation at the point specified by a 3-vector.- Parameters:
v
- Vector3- Returns:
- Matrix33
- Throws:
SpiceException
- exception
-
-