PlayRho  2.0.0
An interactive physics engine & library.
Literals For Unit Symbols

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

Functions

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

Abbreviation for meter squared unit of Area.

See also
SquareMeter

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

constexpr Area playrho::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::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::literals::units::operator""_rpm ( long double  v)
constexprnoexcept

Abbreviation for revolutions per minute.

See also
RevolutionsPerMinute

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

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

Abbreviation for revolutions per minute.

See also
RevolutionsPerMinute

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

constexpr Time playrho::literals::units::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::literals::units::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::literals::units::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::literals::units::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)