Corrects position vector for the deflection of light in the gravitational field of an arbitrary body.

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

Syntax

C#
public void GravVec(
	double[] Pos1,
	double[] PosObs,
	double[] PosBody,
	double RMass,
	ref double[] Pos2
)
Visual Basic
Public Sub GravVec ( _
	Pos1 As Double(), _
	PosObs As Double(), _
	PosBody As Double(), _
	RMass As Double, _
	ByRef Pos2 As Double() _
)
Visual C++
public:
virtual void GravVec(
	array<double>^ Pos1, 
	array<double>^ PosObs, 
	array<double>^ PosBody, 
	double RMass, 
	array<double>^% Pos2
) sealed

Parameters

Pos1
Type: array<System..::..Double>[]()[][]
Position vector of observed object, with respect to origin at observer (or the geocenter), components in AU.
PosObs
Type: array<System..::..Double>[]()[][]
Position vector of observer (or the geocenter), with respect to origin at solar system barycenter, components in AU.
PosBody
Type: array<System..::..Double>[]()[][]
Position vector of gravitating body, with respect to origin at solar system barycenter, components in AU.
RMass
Type: System..::..Double
Reciprocal mass of gravitating body in solar mass units, that is, Sun mass / body mass.
Pos2
Type: array<System..::..Double>[]()[][]%
Position vector of observed object, with respect to origin at observer (or the geocenter), corrected for gravitational deflection, components in AU.

Remarks

This function valid for an observed body within the solar system as well as for a star.

See Also