I hope you can help me, and I'm sorry in advance for my English.
The question is:
I need to know where the coordinate (0, 0, 0) is in celestia, the origin of the axis.
Before I thought that the origin was on the Earth on the position of vernal equinox or on the Sun.
But if I force the position of a star in the position x=0, y=0, z=0 (or RA=0, dec=0 and distance=0), I can see that it isn't so. I modify the function StarDatabase::loadBinary(istream& in), I've added these lines: (nStars is a counter from 0 to totalStars)
Code: Select all
if(stars[nStars].getCatalogNumber() == 88140)
{
star->setPosition(Point3f(0.0f, 0.0f, 0.0f));
// or alternatively
//star->setPosition(astro::equatorialToCelestialCart(0.0f, 0.0f, 0.0f));
}
if(stars[nStars].getCatalogNumber() == 0) // the Sun
{
cout << "RA: " << RA << " dec: " << dec << " parallax: " << parallax << " distance: " <<
distance << '\n';
}
After compiling I can see that the star HD88140 is very far from the Sun... Out of the solar system.
The Sun is far 0.00326167 light years (206 AU) along the x axis from the origin... Why?
Thanks.
Paolo