~stellarium/stellarium/trunk

« back to all changes in this revision

Viewing changes to src/navigator.cpp

  • Committer: xalioth
  • Date: 2003-05-28 21:44:07 UTC
  • Revision ID: vcs-imports@canonical.com-20030528214407-62hf94ipa2tdjgz9
Fixed many things : planets, nebula info, navigation, drawing bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
        {
183
183
        if (flag_traking && selected_object) // Equatorial vision vector locked on selected object
184
184
                {
185
 
                        equ_vision=selected_object->get_equ_pos();
 
185
                        equ_vision=selected_object->get_earth_equ_pos();
186
186
                        // Recalc local vision vector
187
187
                        local_vision=earth_equ_to_local(&equ_vision);
188
188
                }
374
374
        return mat_helio_to_earth_equ*(*v);
375
375
}
376
376
 
 
377
// Transform vector from heliocentric coordinate to false equatorial : equatorial
 
378
// coordinate but centered on the observer position
 
379
Vec3d navigator::helio_to_earth_pos_equ(Vec3d* v)
 
380
{
 
381
        return mat_local_to_earth_equ*mat_helio_to_local*(*v);
 
382
}
 
383
 
377
384
// Move to the given equatorial position
378
385
void navigator::move_to(Vec3d _aim)
379
386
{