Creates a unit vector from angular coordinates (RA, Dec).
Namespace: SphericalAssembly: SphericalLib (in SphericalLib.dll) Version: 1.0.5951.32246 (1.0.0.0)
Syntax
C# |
---|
public Cartesian( double ra, double dec ) |
Visual C++ |
---|
public: Cartesian( double ra, double dec ) |
F# |
---|
new : ra:float * dec:float -> Cartesian |
Parameters
- ra
- Type: System..::..Double
Right Ascension (in degrees)
- dec
- Type: System..::..Double
Declination (in degrees)
Remarks
The equations of the conversion are
CopyC#
x = Cos(Dec)*Cos(RA) y = Cos(Dec)*Sin(RA) z = Sin(Dec)