Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Namespaces | Typedefs | Enumerations | Functions | Variables
units.h File Reference
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  cqsp
 When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to find out how to add a resource to the game.
 
namespace  cqsp::common
 
namespace  cqsp::common::components
 
namespace  cqsp::common::components::types
 

Typedefs

typedef double cqsp::common::components::types::astronomical_unit
 
typedef double cqsp::common::components::types::light_year
 
typedef double cqsp::common::components::types::kilometer
 
typedef double cqsp::common::components::types::solar_mass
 
typedef double cqsp::common::components::types::degree
 
typedef double cqsp::common::components::types::radian
 
typedef double cqsp::common::components::types::meter_cube
 
typedef double cqsp::common::components::types::kilogram
 
typedef double cqsp::common::components::types::earth_masses
 
typedef double cqsp::common::components::types::joule
 
typedef double cqsp::common::components::types::second
 

Enumerations

enum  cqsp::common::components::types::UnitType {
  cqsp::common::components::types::Distance , cqsp::common::components::types::Angle , cqsp::common::components::types::Mass , cqsp::common::components::types::Volume ,
  cqsp::common::components::types::Time
}
 
enum  cqsp::common::components::types::Distance {
  cqsp::common::components::types::LightYear , cqsp::common::components::types::AstronomicalUnit , cqsp::common::components::types::Kilometer , cqsp::common::components::types::Meter ,
  cqsp::common::components::types::Centimeter , cqsp::common::components::types::Millimeter
}
 

Functions

constexpr double cqsp::common::components::types::floatmod (double x, double y)
 
constexpr radian cqsp::common::components::types::normalize_radian (const radian &radian)
 Normalizes a radian to [0, PI*2) More...
 
constexpr double cqsp::common::components::types::normalize_radian_coord (const radian &radian)
 
constexpr degree cqsp::common::components::types::normalize_degree (const degree &radian)
 
constexpr astronomical_unit cqsp::common::components::types::toAU (kilometer km)
 
constexpr light_year cqsp::common::components::types::toLightYear (astronomical_unit au)
 
constexpr astronomical_unit cqsp::common::components::types::LtyrtoAU (light_year ltyr)
 
constexpr kilometer cqsp::common::components::types::toKm (astronomical_unit au)
 
constexpr radian cqsp::common::components::types::toRadian (degree theta)
 
constexpr degree cqsp::common::components::types::toDegree (radian theta)
 
constexpr double cqsp::common::components::types::operator""_deg (const long double deg)
 
constexpr double cqsp::common::components::types::operator""_au (const long double au)
 

Variables

constexpr double cqsp::common::components::types::PI = 3.14159265358979323846
 
constexpr double cqsp::common::components::types::TWOPI = PI * 2
 
constexpr double cqsp::common::components::types::HALFPI = PI / 2
 
constexpr double cqsp::common::components::types::KmInAu = 149597870.700
 
constexpr double cqsp::common::components::types::G = 6.6743015e-11
 
constexpr double cqsp::common::components::types::G_km = 6.6743015e-20
 
constexpr double cqsp::common::components::types::SunMu = 1.32712400188e11