units.cpp File Reference

#include "math/units.hpp"
#include "data/string.hpp"
#include <cmath>
#include <cwctype>

Include dependency graph for units.cpp:

Go to the source code of this file.

Namespaces

namespace  gsgl
namespace  gsgl::math
namespace  gsgl::math::units

Functions

gsgl::real_t parse (const string &str)

Variables

const gsgl::real_t KILOGRAMS_PER_GRAM = (gsgl::real_t) 0.001
const gsgl::real_t KILOGRAMS_PER_KILOGRAM = (gsgl::real_t) 1.0
const gsgl::real_t KILOGRAMS_PER_MILLIGRAM = (gsgl::real_t) 0.000001
const gsgl::real_t METERS_PER_AU = (gsgl::real_t) 149597870691.0
const gsgl::real_t METERS_PER_CENTIMETER = (gsgl::real_t) 0.01
const gsgl::real_t METERS_PER_KILOMETER = (gsgl::real_t) 1000.0
const gsgl::real_t METERS_PER_METER = (gsgl::real_t) 1.0
const gsgl::real_t METERS_PER_MILLIMETER = (gsgl::real_t) 0.001
const gsgl::real_t METERS_PER_PARSEC = (gsgl::real_t) 3.08567758e16
const gsgl::real_t SECONDS_PER_DAY = (gsgl::real_t) 86400.0
const gsgl::real_t SECONDS_PER_HOUR = (gsgl::real_t) 3600.0
const gsgl::real_t SECONDS_PER_MILLISECOND = (gsgl::real_t) 0.001
const gsgl::real_t SECONDS_PER_MINUTE = (gsgl::real_t) 60.0
const gsgl::real_t SECONDS_PER_SECOND = (gsgl::real_t) 1.0
const gsgl::real_t SECONDS_PER_YEAR = (gsgl::real_t) 31557600.0


Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5