Sets the vector to point from angular position (RA,Dec).

Namespace: Spherical
Assembly: SphericalLib (in SphericalLib.dll) Version: 1.0.5951.32246 (1.0.0.0)

Syntax

C#
public void Set(
	double ra,
	double dec
)
Visual C++
public:
void Set(
	double ra, 
	double dec
)
F#
member Set : 
        ra:float * 
        dec:float -> unit 

Parameters

ra
Type: System..::..Double
Right Ascension
dec
Type: System..::..Double
Declination

Remarks

The equations of the conversion are
CopyC#
x = Cos(Dec)*Cos(RA)
y = Cos(Dec)*Sin(RA)
z = Sin(Dec)

See Also