Corrects position vector for the deflection of light in the gravitational field of the Sun.

Namespace: ASCOM.Astrometry.NOVAS
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public static short SunField(
	double[] pos,
	double[] earthvector,
	ref double[] pos2
)
Visual Basic
Public Shared Function SunField ( _
	pos As Double(), _
	earthvector As Double(), _
	ByRef pos2 As Double() _
) As Short
Visual C++
public:
static short SunField(
	array<double>^ pos, 
	array<double>^ earthvector, 
	array<double>^% pos2
)

Parameters

pos
Type: array<System..::..Double>[]()[][]
Position vector, referred to origin at center of mass of the Earth, components in AU.
earthvector
Type: array<System..::..Double>[]()[][]
Position vector of center of mass of the Earth, referred to origin at center of mass of the Sun, components in AU.
pos2
Type: array<System..::..Double>[]()[][]%
Position vector, referred to origin at center of mass of the Earth, corrected for gravitational deflection, components in AU.

Return Value

0...Everything OK.

Remarks

This function is valid for bodies within the solar system as well as for stars.

See Also