mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::astro::units::earth< _realT > Struct Template Reference

template<typename _realT>
struct mx::astro::units::earth< _realT >

Earth units-type.

The units are:

  • Length: Earth-radii
  • Time: s
  • Mass: Earth mass
  • Energy: J
  • Temperature: K

Definition at line 93 of file units.hpp.

#include <astro/units.hpp>

Public Types

typedef _realT realT
 The real floating point type in which to specify constants. More...
 

Static Public Attributes

static constexpr realT length = static_cast<realT>(1)/constants::radEarth<si<realT>>()
 Conversion from SI (m) More...
 
static constexpr realT time = static_cast<realT>(1.0)
 Conversion from SI (s) More...
 
static constexpr realT mass = static_cast<realT>(1.0)/constants::massEarth<si<realT>>()
 Conversion from SI (kg) More...
 
static constexpr realT energy = static_cast<realT>(1.0)
 Conversion from SI (J) More...
 
static constexpr realT temperature = static_cast<realT>(1.0)
 Conversion from SI (K) More...
 

Member Typedef Documentation

◆ realT

template<typename _realT >
typedef _realT mx::astro::units::earth< _realT >::realT

The real floating point type in which to specify constants.

Definition at line 95 of file units.hpp.

Member Data Documentation

◆ energy

template<typename _realT >
constexpr realT mx::astro::units::earth< _realT >::energy = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (J)

Definition at line 99 of file units.hpp.

◆ length

template<typename _realT >
constexpr realT mx::astro::units::earth< _realT >::length = static_cast<realT>(1)/constants::radEarth<si<realT>>()
staticconstexpr

Conversion from SI (m)

Definition at line 96 of file units.hpp.

◆ mass

template<typename _realT >
constexpr realT mx::astro::units::earth< _realT >::mass = static_cast<realT>(1.0)/constants::massEarth<si<realT>>()
staticconstexpr

Conversion from SI (kg)

Definition at line 98 of file units.hpp.

◆ temperature

template<typename _realT >
constexpr realT mx::astro::units::earth< _realT >::temperature = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (K)

Definition at line 100 of file units.hpp.

◆ time

template<typename _realT >
constexpr realT mx::astro::units::earth< _realT >::time = static_cast<realT>(1.0)
staticconstexpr

Conversion from SI (s)

Definition at line 97 of file units.hpp.


The documentation for this struct was generated from the following file: