WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
unitutils.h File Reference
#include <math.h>
#include "types.h"

Go to the source code of this file.

Namespaces

namespace  warpos

Variables

const floating_point M_E = 2.71828182845904523540
const floating_point M_LOG2E = 1.44269504088896340740
const floating_point M_LOG10E = 0.43429448190325182765
const floating_point M_LN2 = 0.69314718055994530942
const floating_point M_LN10 = 2.30258509299404568402
const floating_point M_PI = 3.14159265358979323846
const floating_point M_PI_2 = 1.57079632679489661923
const floating_point M_PI_4 = 0.78539816339744830962
const floating_point M_1_PI = 0.31830988618379067154
const floating_point M_2_PI = 0.63661977236758134308
const floating_point M_2_SQRTPI = 1.12837916709551257390
const floating_point M_SQRT2 = 1.41421356237309504880
const floating_point M_SQRT1_2 = 0.70710678118654752440
const floating_point warpos::TWO_PI = 2.0*M_PI
const floating_point warpos::DEGREES_TO_RADIANS = M_PI/180.0
const floating_point warpos::RADIANS_TO_DEGREES = 180.0/M_PI
const floating_point warpos::SPEED_OF_LIGHT = 299792458.0
const floating_point warpos::BOLTZMANN_CONSTANT = 1.380649e-23
const floating_point warpos::AU_TO_METERS = 149597870700.0
const floating_point warpos::METERS_TO_AU = 1.0/149597870700.0
const floating_point warpos::KM_TO_METERS = 1000.0
const floating_point warpos::METERS_TO_KM = 0.001
const floating_point warpos::METERS_TO_FEET = 3.28084
const floating_point warpos::FEET_TO_METERS = 1.0/METERS_TO_FEET
const floating_point warpos::METERS_TO_INCHES = METERS_TO_FEET*12.0
const floating_point warpos::INCHES_TO_METERS = 1.0/METERS_TO_INCHES
const double warpos::METERS_TO_NAUTICAL_MILES = 1.0/1852.0
const double warpos::LBS_TO_KG = 0.45359237
const double warpos::KG_TO_LBS = 1.0 / LBS_TO_KG
const double warpos::POUND_FORCE_INCH_SECOND2_TO_METER2_KG = 0.1129848
const floating_point warpos::SECONDS_TO_MILLISECONDS = 1000.0
const floating_point warpos::SECONDS_TO_NANOSECONDS = 1000000000.0
const floating_point warpos::NANOSECONDS_TO_SECONDS = 1.0 / SECONDS_TO_NANOSECONDS
const floating_point warpos::MILLISECONDS_TO_NANOSECONDS = 1000000.0
const floating_point warpos::NANOSECONDS_TO_MILLISECONDS = 1.0 / MILLISECONDS_TO_NANOSECONDS
const floating_point warpos::SECONDS_TO_MICROSECONDS = 1000000.0
const floating_point warpos::MICROSECONDS_TO_SECONDS = 1.0 / SECONDS_TO_MICROSECONDS
const floating_point warpos::MICROSECONDS_TO_NANOSECONDS = 1000.0
const floating_point warpos::MICROSECONDS_TO_MILLISECONDS = 1.0/1000.0
const floating_point warpos::MINUTES_TO_SECONDS = 60.0
const floating_point warpos::SECONDS_TO_MINUTES = 1.0 / MINUTES_TO_SECONDS
const floating_point warpos::HOURS_TO_SECONDS = MINUTES_TO_SECONDS*MINUTES_TO_SECONDS
const floating_point warpos::DAYS_TO_SECONDS = 24.0*HOURS_TO_SECONDS
const floating_point warpos::YEARS_TO_SECONDS = 365.25*DAYS_TO_SECONDS
const floating_point warpos::PSI_TO_PASCAL = 6894.7572932
const floating_point warpos::PASCAL_TO_PSI = 1.0/PSI_TO_PASCAL
const floating_point warpos::MILLIBAR_TO_PASCAL = 100.0
const floating_point warpos::PASCAL_TO_MILLIBAR = 1.0/MILLIBAR_TO_PASCAL

Variable Documentation

◆ M_1_PI

const floating_point M_1_PI = 0.31830988618379067154

◆ M_2_PI

const floating_point M_2_PI = 0.63661977236758134308

◆ M_2_SQRTPI

const floating_point M_2_SQRTPI = 1.12837916709551257390

◆ M_E

const floating_point M_E = 2.71828182845904523540

◆ M_LN10

const floating_point M_LN10 = 2.30258509299404568402

◆ M_LN2

const floating_point M_LN2 = 0.69314718055994530942

◆ M_LOG10E

const floating_point M_LOG10E = 0.43429448190325182765

◆ M_LOG2E

const floating_point M_LOG2E = 1.44269504088896340740

◆ M_PI

const floating_point M_PI = 3.14159265358979323846

◆ M_PI_2

const floating_point M_PI_2 = 1.57079632679489661923

◆ M_PI_4

const floating_point M_PI_4 = 0.78539816339744830962

◆ M_SQRT1_2

const floating_point M_SQRT1_2 = 0.70710678118654752440

◆ M_SQRT2

const floating_point M_SQRT2 = 1.41421356237309504880