The doc for 7.40.1.1 OAPIFUNC void oapiGetGlobalPos (OBJHANDLE hObj, VECTOR3 pos)
says "Returns the position of an object in the global reference frame."
and :
Note:
The global reference frame is the heliocentric ecliptic system at
ecliptic and equinox of J2000. Units are meters.
`
So why is the following code not returning values (close to) 0.0, 0.0, 0.0 for the Sun ? : (since it's supposed to be a *heliocentric* system ?)
OBJHANDLE hSun = oapiGetGbodyByName("Sun");
oapiGetGlobalPos( hSun, &sunGpos );
I'm getting : for( MJD 51623.000010 Mar 20 2000 00:00:00) :
Sun X: -1.00134e+009 Y: 2.96241e+007 Z:-5.0059e+008
says "Returns the position of an object in the global reference frame."
and :
Note:
The global reference frame is the heliocentric ecliptic system at
ecliptic and equinox of J2000. Units are meters.
`
So why is the following code not returning values (close to) 0.0, 0.0, 0.0 for the Sun ? : (since it's supposed to be a *heliocentric* system ?)
OBJHANDLE hSun = oapiGetGbodyByName("Sun");
oapiGetGlobalPos( hSun, &sunGpos );
I'm getting : for( MJD 51623.000010 Mar 20 2000 00:00:00) :
Sun X: -1.00134e+009 Y: 2.96241e+007 Z:-5.0059e+008