PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
Literals For Unit Symbols

User defined literals for more conveniently setting the value of physical quantities. More...

Functions

constexpr Mass playrho::operator""_g (unsigned long long int v) noexcept
 SI unit symbol for a gram unit of Mass. More...
 
constexpr Mass playrho::operator""_g (long double v) noexcept
 SI unit symbol for a gram unit of Mass. More...
 
constexpr Mass playrho::operator""_kg (unsigned long long int v) noexcept
 SI unit symbol for a kilogram unit of Mass. More...
 
constexpr Mass playrho::operator""_kg (long double v) noexcept
 SI unit symbol for a kilogram unit of Mass. More...
 
constexpr Mass playrho::operator""_Pg (unsigned long long int v) noexcept
 SI unit symbol for a petagram unit of Mass. More...
 
constexpr Mass playrho::operator""_Pg (long double v) noexcept
 SI unit symbol for a petagram unit of Mass. More...
 
constexpr Mass playrho::operator""_Yg (unsigned long long int v) noexcept
 SI unit symbol for a yottagram unit of Mass. More...
 
constexpr Mass playrho::operator""_Yg (long double v) noexcept
 SI unit symbol for a yottagram unit of Mass. More...
 
constexpr Length playrho::operator""_m (unsigned long long int v) noexcept
 SI unit symbol for a meter of Length. More...
 
constexpr Length playrho::operator""_m (long double v) noexcept
 SI unit symbol for a meter of Length. More...
 
constexpr Length playrho::operator""_dm (unsigned long long int v) noexcept
 SI unit symbol for a decimeter of Length. More...
 
constexpr Length playrho::operator""_dm (long double v) noexcept
 SI unit symbol for a decimeter of Length. More...
 
constexpr Length playrho::operator""_cm (unsigned long long int v) noexcept
 SI unit symbol for a centimeter of Length. More...
 
constexpr Length playrho::operator""_cm (long double v) noexcept
 SI unit symbol for a centimeter of Length. More...
 
constexpr Length playrho::operator""_Gm (unsigned long long int v) noexcept
 SI unit symbol for a gigameter unit of Length. More...
 
constexpr Length playrho::operator""_Gm (long double v) noexcept
 SI unit symbol for a gigameter unit of Length. More...
 
constexpr Length playrho::operator""_Mm (unsigned long long int v) noexcept
 SI unit symbol for a megameter unit of Length. More...
 
constexpr Length playrho::operator""_Mm (long double v) noexcept
 SI unit symbol for a megameter unit of Length. More...
 
constexpr Length playrho::operator""_km (unsigned long long int v) noexcept
 SI symbol for a kilometer unit of Length. More...
 
constexpr Length playrho::operator""_km (long double v) noexcept
 SI symbol for a kilometer unit of Length. More...
 
constexpr Time playrho::operator""_s (unsigned long long int v) noexcept
 SI symbol for a second unit of Time. More...
 
constexpr Time playrho::operator""_s (long double v) noexcept
 SI symbol for a second unit of Time. More...
 
constexpr Time playrho::operator""_min (unsigned long long int v) noexcept
 SI symbol for a minute unit of Time. More...
 
constexpr Time playrho::operator""_min (long double v) noexcept
 SI symbol for a minute unit of Time. More...
 
constexpr Time playrho::operator""_h (unsigned long long int v) noexcept
 Symbol for an hour unit of Time. More...
 
constexpr Time playrho::operator""_h (long double v) noexcept
 Symbol for an hour unit of Time. More...
 
constexpr Time playrho::operator""_d (unsigned long long int v) noexcept
 Symbol for a day unit of Time. More...
 
constexpr Time playrho::operator""_d (long double v) noexcept
 Symbol for a day unit of Time. More...
 
constexpr Angle playrho::operator""_rad (unsigned long long int v) noexcept
 SI symbol for a radian unit of Angle. More...
 
constexpr Angle playrho::operator""_rad (long double v) noexcept
 SI symbol for a radian unit of Angle. More...
 
constexpr Angle playrho::operator""_deg (unsigned long long int v) noexcept
 Abbreviation for a degree unit of Angle. More...
 
constexpr Angle playrho::operator""_deg (long double v) noexcept
 Abbreviation for a degree unit of Angle. More...
 
constexpr Force playrho::operator""_N (unsigned long long int v) noexcept
 SI symbol for a newton unit of Force. More...
 
constexpr Force playrho::operator""_N (long double v) noexcept
 SI symbol for a newton unit of Force. More...
 
constexpr Area playrho::operator""_m2 (unsigned long long int v) noexcept
 Abbreviation for meter squared unit of Area. More...
 
constexpr Area playrho::operator""_m2 (long double v) noexcept
 Abbreviation for meter squared unit of Area. More...
 
constexpr LinearVelocity playrho::operator""_mps (unsigned long long int v) noexcept
 Abbreviation for meter per second. More...
 
constexpr LinearVelocity playrho::operator""_mps (long double v) noexcept
 Abbreviation for meter per second. More...
 
constexpr LinearVelocity playrho::operator""_kps (unsigned long long int v) noexcept
 Abbreviation for kilometer per second. More...
 
constexpr LinearVelocity playrho::operator""_kps (long double v) noexcept
 Abbreviation for kilometer per second. More...
 
constexpr LinearAcceleration playrho::operator""_mps2 (unsigned long long int v) noexcept
 Abbreviation for meter per second squared. More...
 
constexpr LinearAcceleration playrho::operator""_mps2 (long double v) noexcept
 Abbreviation for meter per second squared. More...
 
constexpr Frequency playrho::operator""_Hz (unsigned long long int v) noexcept
 SI symbol for a hertz unit of Frequency. More...
 
constexpr Frequency playrho::operator""_Hz (long double v) noexcept
 SI symbol for a hertz unit of Frequency. More...
 
constexpr Torque playrho::operator""_Nm (unsigned long long int v) noexcept
 Abbreviation for newton-meter unit of torque. More...
 
constexpr Torque playrho::operator""_Nm (long double v) noexcept
 Abbreviation for newton-meter unit of torque. More...
 
constexpr Momentum playrho::operator""_Ns (unsigned long long int v) noexcept
 SI symbol for a newton second of impulse. More...
 
constexpr Momentum playrho::operator""_Ns (long double v) noexcept
 SI symbol for a newton second of impulse. More...
 
constexpr AreaDensity playrho::operator""_kgpm2 (unsigned long long int v) noexcept
 Abbreviation for kilogram per square meter.
 
constexpr AreaDensity playrho::operator""_kgpm2 (long double v) noexcept
 Abbreviation for kilogram per square meter.
 
constexpr AngularVelocity playrho::operator""_rpm (unsigned long long int v) noexcept
 Abbreviation for revolutions per minute. More...
 
constexpr AngularVelocity playrho::operator""_rpm (long double v) noexcept
 Abbreviation for revolutions per minute. More...
 

Detailed Description

User defined literals for more conveniently setting the value of physical quantities.

See also
Physical Quantity Types
Units For Physical Quantities

Function Documentation

◆ operator""_cm() [1/2]

constexpr Length playrho::operator""_cm ( long double  v)
constexprnoexcept

SI unit symbol for a centimeter of Length.

See also
https://en.wikipedia.org/wiki/Centimetre

◆ operator""_cm() [2/2]

constexpr Length playrho::operator""_cm ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a centimeter of Length.

See also
https://en.wikipedia.org/wiki/Centimetre

◆ operator""_d() [1/2]

constexpr Time playrho::operator""_d ( long double  v)
constexprnoexcept

Symbol for a day unit of Time.

See also
https://en.wikipedia.org/wiki/Day

◆ operator""_d() [2/2]

constexpr Time playrho::operator""_d ( unsigned long long int  v)
constexprnoexcept

Symbol for a day unit of Time.

See also
https://en.wikipedia.org/wiki/Day

◆ operator""_deg() [1/2]

constexpr Angle playrho::operator""_deg ( long double  v)
constexprnoexcept

Abbreviation for a degree unit of Angle.

See also
Degree.
https://en.wikipedia.org/wiki/Degree_(angle)

◆ operator""_deg() [2/2]

constexpr Angle playrho::operator""_deg ( unsigned long long int  v)
constexprnoexcept

Abbreviation for a degree unit of Angle.

See also
Degree.
https://en.wikipedia.org/wiki/Degree_(angle)

◆ operator""_dm() [1/2]

constexpr Length playrho::operator""_dm ( long double  v)
constexprnoexcept

SI unit symbol for a decimeter of Length.

See also
https://en.wikipedia.org/wiki/Decimetre

◆ operator""_dm() [2/2]

constexpr Length playrho::operator""_dm ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a decimeter of Length.

See also
https://en.wikipedia.org/wiki/Decimetre

◆ operator""_g() [1/2]

constexpr Mass playrho::operator""_g ( long double  v)
constexprnoexcept

SI unit symbol for a gram unit of Mass.

See also
https://en.wikipedia.org/wiki/Gram

◆ operator""_g() [2/2]

constexpr Mass playrho::operator""_g ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a gram unit of Mass.

See also
https://en.wikipedia.org/wiki/Gram

◆ operator""_Gm() [1/2]

constexpr Length playrho::operator""_Gm ( long double  v)
constexprnoexcept

SI unit symbol for a gigameter unit of Length.

See also
https://en.wikipedia.org/wiki/Gigametre

◆ operator""_Gm() [2/2]

constexpr Length playrho::operator""_Gm ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a gigameter unit of Length.

See also
https://en.wikipedia.org/wiki/Gigametre

◆ operator""_h() [1/2]

constexpr Time playrho::operator""_h ( long double  v)
constexprnoexcept

Symbol for an hour unit of Time.

See also
https://en.wikipedia.org/wiki/Hour

◆ operator""_h() [2/2]

constexpr Time playrho::operator""_h ( unsigned long long int  v)
constexprnoexcept

Symbol for an hour unit of Time.

See also
https://en.wikipedia.org/wiki/Hour

◆ operator""_Hz() [1/2]

constexpr Frequency playrho::operator""_Hz ( long double  v)
constexprnoexcept

SI symbol for a hertz unit of Frequency.

See also
Hertz
https://en.wikipedia.org/wiki/Hertz

◆ operator""_Hz() [2/2]

constexpr Frequency playrho::operator""_Hz ( unsigned long long int  v)
constexprnoexcept

SI symbol for a hertz unit of Frequency.

See also
Hertz
https://en.wikipedia.org/wiki/Hertz

◆ operator""_kg() [1/2]

constexpr Mass playrho::operator""_kg ( long double  v)
constexprnoexcept

SI unit symbol for a kilogram unit of Mass.

See also
Kilogram
https://en.wikipedia.org/wiki/Kilogram

◆ operator""_kg() [2/2]

constexpr Mass playrho::operator""_kg ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a kilogram unit of Mass.

See also
Kilogram
https://en.wikipedia.org/wiki/Kilogram

◆ operator""_km() [1/2]

constexpr Length playrho::operator""_km ( long double  v)
constexprnoexcept

SI symbol for a kilometer unit of Length.

See also
https://en.wikipedia.org/wiki/Kilometre

◆ operator""_km() [2/2]

constexpr Length playrho::operator""_km ( unsigned long long int  v)
constexprnoexcept

SI symbol for a kilometer unit of Length.

See also
https://en.wikipedia.org/wiki/Kilometre

◆ operator""_kps() [1/2]

constexpr LinearVelocity playrho::operator""_kps ( long double  v)
constexprnoexcept

Abbreviation for kilometer per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Second

◆ operator""_kps() [2/2]

constexpr LinearVelocity playrho::operator""_kps ( unsigned long long int  v)
constexprnoexcept

Abbreviation for kilometer per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Second

◆ operator""_m() [1/2]

constexpr Length playrho::operator""_m ( long double  v)
constexprnoexcept

SI unit symbol for a meter of Length.

See also
Meter
https://en.wikipedia.org/wiki/Metre

◆ operator""_m() [2/2]

constexpr Length playrho::operator""_m ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a meter of Length.

See also
Meter
https://en.wikipedia.org/wiki/Metre

◆ operator""_m2() [1/2]

constexpr Area playrho::operator""_m2 ( long double  v)
constexprnoexcept

Abbreviation for meter squared unit of Area.

See also
SquareMeter

◆ operator""_m2() [2/2]

constexpr Area playrho::operator""_m2 ( unsigned long long int  v)
constexprnoexcept

Abbreviation for meter squared unit of Area.

See also
SquareMeter

◆ operator""_min() [1/2]

constexpr Time playrho::operator""_min ( long double  v)
constexprnoexcept

SI symbol for a minute unit of Time.

See also
https://en.wikipedia.org/wiki/Minute

◆ operator""_min() [2/2]

constexpr Time playrho::operator""_min ( unsigned long long int  v)
constexprnoexcept

SI symbol for a minute unit of Time.

See also
https://en.wikipedia.org/wiki/Minute

◆ operator""_Mm() [1/2]

constexpr Length playrho::operator""_Mm ( long double  v)
constexprnoexcept

SI unit symbol for a megameter unit of Length.

See also
https://en.wikipedia.org/wiki/Megametre

◆ operator""_Mm() [2/2]

constexpr Length playrho::operator""_Mm ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a megameter unit of Length.

See also
https://en.wikipedia.org/wiki/Megametre

◆ operator""_mps() [1/2]

constexpr LinearVelocity playrho::operator""_mps ( long double  v)
constexprnoexcept

Abbreviation for meter per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Meter
Second
MeterPerSecond

◆ operator""_mps() [2/2]

constexpr LinearVelocity playrho::operator""_mps ( unsigned long long int  v)
constexprnoexcept

Abbreviation for meter per second.

See also
https://en.wikipedia.org/wiki/Metre_per_second
Meter
Second
MeterPerSecond

◆ operator""_mps2() [1/2]

constexpr LinearAcceleration playrho::operator""_mps2 ( long double  v)
constexprnoexcept

Abbreviation for meter per second squared.

See also
https://en.wikipedia.org/wiki/Metre_per_second_squared
MeterPerSquareSecond

◆ operator""_mps2() [2/2]

constexpr LinearAcceleration playrho::operator""_mps2 ( unsigned long long int  v)
constexprnoexcept

Abbreviation for meter per second squared.

See also
https://en.wikipedia.org/wiki/Metre_per_second_squared
MeterPerSquareSecond

◆ operator""_N() [1/2]

constexpr Force playrho::operator""_N ( long double  v)
constexprnoexcept

SI symbol for a newton unit of Force.

See also
Newton
https://en.wikipedia.org/wiki/Newton_(unit)

◆ operator""_N() [2/2]

constexpr Force playrho::operator""_N ( unsigned long long int  v)
constexprnoexcept

SI symbol for a newton unit of Force.

See also
Newton
https://en.wikipedia.org/wiki/Newton_(unit)

◆ operator""_Nm() [1/2]

constexpr Torque playrho::operator""_Nm ( long double  v)
constexprnoexcept

Abbreviation for newton-meter unit of torque.

See also
NewtonMeter
https://en.wikipedia.org/wiki/Newton_metre

◆ operator""_Nm() [2/2]

constexpr Torque playrho::operator""_Nm ( unsigned long long int  v)
constexprnoexcept

Abbreviation for newton-meter unit of torque.

See also
NewtonMeter
https://en.wikipedia.org/wiki/Newton_metre

◆ operator""_Ns() [1/2]

constexpr Momentum playrho::operator""_Ns ( long double  v)
constexprnoexcept

SI symbol for a newton second of impulse.

See also
NewtonSecond
https://en.wikipedia.org/wiki/Newton_second

◆ operator""_Ns() [2/2]

constexpr Momentum playrho::operator""_Ns ( unsigned long long int  v)
constexprnoexcept

SI symbol for a newton second of impulse.

See also
NewtonSecond
https://en.wikipedia.org/wiki/Newton_second

◆ operator""_Pg() [1/2]

constexpr Mass playrho::operator""_Pg ( long double  v)
constexprnoexcept

SI unit symbol for a petagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)

◆ operator""_Pg() [2/2]

constexpr Mass playrho::operator""_Pg ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a petagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)

◆ operator""_rad() [1/2]

constexpr Angle playrho::operator""_rad ( long double  v)
constexprnoexcept

SI symbol for a radian unit of Angle.

See also
Radian.
https://en.wikipedia.org/wiki/Radian

◆ operator""_rad() [2/2]

constexpr Angle playrho::operator""_rad ( unsigned long long int  v)
constexprnoexcept

SI symbol for a radian unit of Angle.

See also
Radian.
https://en.wikipedia.org/wiki/Radian

◆ operator""_rpm() [1/2]

constexpr AngularVelocity playrho::operator""_rpm ( long double  v)
constexprnoexcept

Abbreviation for revolutions per minute.

See also
RevolutionsPerMinute

◆ operator""_rpm() [2/2]

constexpr AngularVelocity playrho::operator""_rpm ( unsigned long long int  v)
constexprnoexcept

Abbreviation for revolutions per minute.

See also
RevolutionsPerMinute

◆ operator""_s() [1/2]

constexpr Time playrho::operator""_s ( long double  v)
constexprnoexcept

SI symbol for a second unit of Time.

See also
Second
https://en.wikipedia.org/wiki/Second

◆ operator""_s() [2/2]

constexpr Time playrho::operator""_s ( unsigned long long int  v)
constexprnoexcept

SI symbol for a second unit of Time.

See also
Second
https://en.wikipedia.org/wiki/Second

◆ operator""_Yg() [1/2]

constexpr Mass playrho::operator""_Yg ( long double  v)
constexprnoexcept

SI unit symbol for a yottagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)

◆ operator""_Yg() [2/2]

constexpr Mass playrho::operator""_Yg ( unsigned long long int  v)
constexprnoexcept

SI unit symbol for a yottagram unit of Mass.

See also
https://en.wikipedia.org/wiki/Orders_of_magnitude_(mass)