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