#include <cmath>
#include <string>
#include <cstdio>
#include <cstdlib>
#include "orsa_secure_math.h"
#include "orsa_coord.h"
#include "orsa_error.h"
#include "orsa_file_jpl.h"
Include dependency graph for orsa_units.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | orsa |
Classes | |
class | UnitBaseScale |
class | Units |
class | TimeStep |
class | Date |
class | UniverseTypeAwareTime |
class | UniverseTypeAwareTimeStep |
class | Angle |
Enumerations | |
enum | time_unit { YEAR = 1, DAY = 2, HOUR = 3, MINUTE = 4, SECOND = 5 } |
enum | length_unit { MPARSEC = 1, KPARSEC = 2, PARSEC = 3, LY = 4, AU = 5, EARTHMOON = 6, REARTH = 7, RMOON = 8, KM = 9, M = 10, CM = 11, LD = EARTHMOON, ER = REARTH, MR = RMOON } |
enum | mass_unit { MSUN = 1, MJUPITER = 2, MEARTH = 3, MMOON = 4, KG = 5, GRAM = 6 } |
enum | TimeScale { UTC = 1, UT = 2, TAI = 3, TDT = 4, GPS = 5, UT1 = UT, ET = TDT, TT = TDT } |
TimeScale enum, useful only when using a Real Universe. More information can be obtained here: http://www.hartrao.ac.za/nccsdoc/slalib/sun67.htx/node217.html. More... | |
enum | ReferenceSystem { EQUATORIAL = 1, ECLIPTIC = 2 } |
Functions | |
void | convert (time_unit &tu, const unsigned int i) |
void | convert (length_unit &lu, const unsigned int i) |
void | convert (mass_unit &mu, const unsigned int i) |
double | GetG () |
double | GetG_MKS () |
double | GetMSun () |
double | GetC () |
double | FromUnits (const double, const time_unit, const int=1) |
double | FromUnits (const double, const length_unit, const int=1) |
double | FromUnits (const double, const mass_unit, const int=1) |
std::string | TimeLabel () |
std::string | LengthLabel () |
std::string | MassLabel () |
void | convert (TimeScale &ts, const unsigned int i) |
string | TimeScaleLabel (TimeScale ts) |
UniverseTypeAwareTimeStep | operator * (const int i, const UniverseTypeAwareTimeStep &ts) |
UniverseTypeAwareTimeStep | operator * (const UniverseTypeAwareTimeStep &ts, const int i) |
UniverseTypeAwareTimeStep | operator * (const double x, const UniverseTypeAwareTimeStep &ts) |
UniverseTypeAwareTimeStep | operator * (const UniverseTypeAwareTimeStep &ts, const double x) |
double | sin (const Angle &alpha) |
double | cos (const Angle &alpha) |
double | tan (const Angle &alpha) |
void | sincos (const Angle &alpha, double &s, double &c) |
void | convert (ReferenceSystem &rs, const unsigned int i) |
Angle | obleq (const Date &date) |
Angle | gmst (const Date &date) |
void | EclipticToEquatorial (Vector &v, const Date &date) |
void | EquatorialToEcliptic (Vector &v, const Date &date) |
Angle | obleq_J2000 () |
void | EclipticToEquatorial_J2000 (Vector &v) |
void | EquatorialToEcliptic_J2000 (Vector &v) |
void | alpha_delta_meridian (const JPL_planets p, const Date &date, Angle &alpha_zero, Angle &delta_zero, Angle &W) |
Variables | |
Units * | units |
TimeScale | default_Date_timescale |