Changeset 16962


Ignore:
Timestamp:
07/18/13 13:17:34 (11 years ago)
Author:
tbretz
Message:
Added GetAngularSeparation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/nova.h

    r16849 r16962  
    66#include <libnova/rise_set.h>
    77#include <libnova/transform.h>
     8#include <libnova/angular_separation.h>
    89
    910namespace Nova
     
    1213    //typedef ln_hrz_posn   HrzPosn;
    1314    typedef ln_equ_posn   EquPosn;
    14     typedef ln_rst_time   RstTime;
     15    typedef ln_rst_time   RstTime; // Note that times are in JD not Mjd
    1516
    1617    struct ZdAzPosn;
     
    120121        return ln_get_lunar_earth_dist(jd);
    121122    }
     123
     124    double GetAngularSeparation(const EquPosn &p1, const EquPosn &p2)
     125    {
     126        return ln_get_angular_separation(const_cast<EquPosn*>(&p1), const_cast<EquPosn*>(&p2));
     127    }
    122128}
    123129
Note: See TracChangeset for help on using the changeset viewer.