Functions
relativity.c File Reference

Correct for light deflection due to solar gravitation. More...

#include <math.h>
#include <stdlib.h>
#include "aephem.h"

Functions

void ae_relativity (double p[], double q[], double o[])
 Correct for light deflection due to solar gravitation. More...
 

Detailed Description

Correct for light deflection due to solar gravitation.

Function Documentation

void ae_relativity ( double  p[],
double  q[],
double  o[] 
)

Correct for light deflection due to solar gravitation.

Note that this blows up if the object is very near (or is) the sun. Therefore, if the sun-object or sun-object distance is zero, no correction is made.

See AA page B37.

Parameters
pThe unit vector from observer to an object; this routine returns the corrected vector in this parameter.
qThe heliocentric ecliptic rectangular coordinates of the object.
oThe heliocentric ecliptic rectangular coordinates of the observer.

Referenced by ae_geocentric(), and ae_geocentric_from_cat().