Changeset 15203


Ignore:
Timestamp:
03/30/13 16:38:09 (12 years ago)
Author:
tbretz
Message:
Added GetEquFromHrz
File:
1 edited

Legend:

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

    r15197 r15203  
    2020    }
    2121
    22     HrzPosn GetHrzFromEqu(const EquPosn &obj, const LnLatPosn &obs, double jd)
     22    HrzPosn GetHrzFromEqu(const EquPosn &equ, const LnLatPosn &obs, double jd)
    2323    {
    2424        HrzPosn hrz;
    25         ln_get_hrz_from_equ(const_cast<EquPosn*>(&obj), const_cast<LnLatPosn*>(&obs), jd, &hrz);
     25        ln_get_hrz_from_equ(const_cast<EquPosn*>(&equ), const_cast<LnLatPosn*>(&obs), jd, &hrz);
    2626        return hrz;
    2727    }
    28     HrzPosn GetHrzFromEqu(const EquPosn &obj, double jd)
     28    HrzPosn GetHrzFromEqu(const EquPosn &equ, double jd)
    2929    {
    30         return GetHrzFromEqu(obj, ORM(), jd);
     30        return GetHrzFromEqu(equ, ORM(), jd);
     31    }
     32
     33    EquPosn GetEquFromHrz(const HrzPosn &hrz, const LnLatPosn &obs, double jd)
     34    {
     35        EquPosn equ;
     36        ln_get_equ_from_hrz(const_cast<HrzPosn*>(&hrz), const_cast<LnLatPosn*>(&obs), jd, &equ);
     37        return equ;
     38    }
     39    EquPosn GetEquFromHrz(const HrzPosn &hrz, double jd)
     40    {
     41        return GetEquFromHrz(hrz, ORM(), jd);
    3142    }
    3243
Note: See TracChangeset for help on using the changeset viewer.