Units For Physical Quantities

Units for expressing physical quantities like time and length. More...

Variables

const PLAYRHO_CONSTEXPR auto playrho::Second = PLAYRHO_UNIT(Time, boost::units::si::second)
 Second unit of time. More...
 
const PLAYRHO_CONSTEXPR auto playrho::SquareSecond = Second * Second
 Square second unit. More...
 
const PLAYRHO_CONSTEXPR auto playrho::Hertz = PLAYRHO_UNIT(Frequency, boost::units::si::hertz)
 Hertz unit of Frequency. More...
 
const PLAYRHO_CONSTEXPR auto playrho::Meter = PLAYRHO_UNIT(Length, boost::units::si::meter)
 Meter unit of Length. More...
 
const PLAYRHO_CONSTEXPR auto playrho::MeterPerSecond
 Meter per second unit of linear velocity. More...
 
const PLAYRHO_CONSTEXPR auto playrho::MeterPerSquareSecond
 Meter per square second unit of linear acceleration. More...
 
const PLAYRHO_CONSTEXPR auto playrho::Kilogram = PLAYRHO_UNIT(Mass, boost::units::si::kilogram)
 Kilogram unit of mass. More...
 
const PLAYRHO_CONSTEXPR auto playrho::SquareMeter = PLAYRHO_UNIT(Area, boost::units::si::square_meter)
 Square meter unit of area. More...
 
const PLAYRHO_CONSTEXPR auto playrho::CubicMeter = Meter * Meter * Meter
 Cubic meter unit of volume. More...
 
const PLAYRHO_CONSTEXPR auto playrho::KilogramPerSquareMeter
 Kilogram per square meter unit of area density. More...
 
const PLAYRHO_CONSTEXPR auto playrho::Radian = PLAYRHO_UNIT(Angle, boost::units::si::radian)
 Radian unit of angle. More...
 
const PLAYRHO_CONSTEXPR auto playrho::Degree = Angle{Radian * Pi / Real{180}}
 Degree unit of angle quantity. More...
 
const PLAYRHO_CONSTEXPR auto playrho::SquareRadian = Radian * Radian
 Square radian unit type. More...
 
const PLAYRHO_CONSTEXPR auto playrho::RadianPerSecond
 Radian per second unit of angular velocity. More...
 
const PLAYRHO_CONSTEXPR auto playrho::DegreePerSecond = AngularVelocity{RadianPerSecond * Degree / Radian}
 Degree per second unit of angular velocity. More...
 
const PLAYRHO_CONSTEXPR auto playrho::RadianPerSquareSecond = Radian / (Second * Second)
 Radian per square second unit of angular acceleration. More...
 
const PLAYRHO_CONSTEXPR auto playrho::DegreePerSquareSecond = Degree / (Second * Second)
 Degree per square second unit of angular acceleration. More...
 
const PLAYRHO_CONSTEXPR auto playrho::Newton = PLAYRHO_UNIT(Force, boost::units::si::newton)
 Newton unit of force. More...
 
const PLAYRHO_CONSTEXPR auto playrho::NewtonMeter = PLAYRHO_UNIT(Torque, boost::units::si::newton_meter)
 Newton meter unit of torque. More...
 
const PLAYRHO_CONSTEXPR auto playrho::NewtonSecond = Newton * Second
 Newton second unit of momentum. More...
 
const PLAYRHO_CONSTEXPR auto playrho::NewtonMeterSecond = NewtonMeter * Second
 Newton meter second unit of angular momentum. More...
 
const PLAYRHO_CONSTEXPR auto playrho::RevolutionsPerMinute = 2 * Pi * Radian / (Real{60} * Second)
 Revolutions per minute units of angular velocity. More...
 

Detailed Description

Units for expressing physical quantities like time and length.

These are the unit definitions for expressing physical quantities like time and length. Conceptually a given unit is only usable with the quantities that are made up of the dimensions which the unit is associated with.

See also
Physical Quantity Types.

Variable Documentation

◆ Second

const PLAYRHO_CONSTEXPR auto playrho::Second = PLAYRHO_UNIT(Time, boost::units::si::second)

Second unit of time.

Note
This is the SI base unit of time.
See also
Time.
https://en.wikipedia.org/wiki/Second
Examples
World.cpp.

Definition at line 283 of file Units.hpp.

◆ SquareSecond

const PLAYRHO_CONSTEXPR auto playrho::SquareSecond = Second * Second

Square second unit.

See also
Second

Definition at line 287 of file Units.hpp.

◆ Hertz

const PLAYRHO_CONSTEXPR auto playrho::Hertz = PLAYRHO_UNIT(Frequency, boost::units::si::hertz)

Hertz unit of Frequency.

Represents the hertz unit of frequency (Hz).

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

Definition at line 293 of file Units.hpp.

◆ Meter

const PLAYRHO_CONSTEXPR auto playrho::Meter = PLAYRHO_UNIT(Length, boost::units::si::meter)

Meter unit of Length.

A unit of the length quantity.

Note
This is the SI base unit of length.
See also
Length.
https://en.wikipedia.org/wiki/Metre
Examples
Body.cpp, and World.cpp.

Definition at line 300 of file Units.hpp.

◆ MeterPerSecond

const PLAYRHO_CONSTEXPR auto playrho::MeterPerSecond
Initial value:
boost::units::si::meter_per_second)

Meter per second unit of linear velocity.

See also
LinearVelocity.

Definition at line 304 of file Units.hpp.

◆ MeterPerSquareSecond

const PLAYRHO_CONSTEXPR auto playrho::MeterPerSquareSecond
Initial value:
boost::units::si::meter_per_second_squared)

Meter per square second unit of linear acceleration.

See also
LinearAcceleration.
Examples
Body.cpp, and World.cpp.

Definition at line 309 of file Units.hpp.

◆ Kilogram

const PLAYRHO_CONSTEXPR auto playrho::Kilogram = PLAYRHO_UNIT(Mass, boost::units::si::kilogram)

Kilogram unit of mass.

Note
This is the SI base unit of mass.
See also
Mass.
https://en.wikipedia.org/wiki/Kilogram
Examples
Body.cpp.

Definition at line 316 of file Units.hpp.

◆ SquareMeter

const PLAYRHO_CONSTEXPR auto playrho::SquareMeter = PLAYRHO_UNIT(Area, boost::units::si::square_meter)

Square meter unit of area.

See also
Area.
Examples
Body.cpp.

Definition at line 320 of file Units.hpp.

◆ CubicMeter

const PLAYRHO_CONSTEXPR auto playrho::CubicMeter = Meter * Meter * Meter

Cubic meter unit of volume.

Definition at line 323 of file Units.hpp.

◆ KilogramPerSquareMeter

const PLAYRHO_CONSTEXPR auto playrho::KilogramPerSquareMeter
Initial value:
boost::units::si::kilogram_per_square_meter)

Kilogram per square meter unit of area density.

See also
AreaDensity.

Definition at line 327 of file Units.hpp.

◆ Radian

const PLAYRHO_CONSTEXPR auto playrho::Radian = PLAYRHO_UNIT(Angle, boost::units::si::radian)

Radian unit of angle.

See also
Angle.
Degree.

Definition at line 333 of file Units.hpp.

◆ Degree

const PLAYRHO_CONSTEXPR auto playrho::Degree = Angle{Radian * Pi / Real{180}}

Degree unit of angle quantity.

See also
Angle.
Radian.

Definition at line 338 of file Units.hpp.

◆ SquareRadian

const PLAYRHO_CONSTEXPR auto playrho::SquareRadian = Radian * Radian

Square radian unit type.

See also
Angle.
Radian.
Examples
Body.cpp.

Definition at line 343 of file Units.hpp.

◆ RadianPerSecond

const PLAYRHO_CONSTEXPR auto playrho::RadianPerSecond
Initial value:
boost::units::si::radian_per_second)

Radian per second unit of angular velocity.

See also
AngularVelocity.
Radian, Second.
Examples
Body.cpp.

Definition at line 348 of file Units.hpp.

◆ DegreePerSecond

const PLAYRHO_CONSTEXPR auto playrho::DegreePerSecond = AngularVelocity{RadianPerSecond * Degree / Radian}

Degree per second unit of angular velocity.

See also
AngularVelocity.
Degree, Second.

Definition at line 354 of file Units.hpp.

◆ RadianPerSquareSecond

const PLAYRHO_CONSTEXPR auto playrho::RadianPerSquareSecond = Radian / (Second * Second)

Radian per square second unit of angular acceleration.

See also
AngularAcceleration.
Radian, Second.
Examples
Body.cpp, and World.cpp.

Definition at line 359 of file Units.hpp.

◆ DegreePerSquareSecond

const PLAYRHO_CONSTEXPR auto playrho::DegreePerSquareSecond = Degree / (Second * Second)

Degree per square second unit of angular acceleration.

See also
AngularAcceleration.
Degree, Second.

Definition at line 364 of file Units.hpp.

◆ Newton

const PLAYRHO_CONSTEXPR auto playrho::Newton = PLAYRHO_UNIT(Force, boost::units::si::newton)

Newton unit of force.

See also
Force.
Examples
Body.cpp.

Definition at line 368 of file Units.hpp.

◆ NewtonMeter

const PLAYRHO_CONSTEXPR auto playrho::NewtonMeter = PLAYRHO_UNIT(Torque, boost::units::si::newton_meter)

Newton meter unit of torque.

See also
Torque.
Newton, Meter.

Definition at line 373 of file Units.hpp.

◆ NewtonSecond

const PLAYRHO_CONSTEXPR auto playrho::NewtonSecond = Newton * Second

Newton second unit of momentum.

See also
Momentum.
Newton, Second.

Definition at line 378 of file Units.hpp.

◆ NewtonMeterSecond

const PLAYRHO_CONSTEXPR auto playrho::NewtonMeterSecond = NewtonMeter * Second

Newton meter second unit of angular momentum.

See also
AngularMomentum.
Newton, Meter, Second.

Definition at line 383 of file Units.hpp.

◆ RevolutionsPerMinute

const PLAYRHO_CONSTEXPR auto playrho::RevolutionsPerMinute = 2 * Pi * Radian / (Real{60} * Second)

Revolutions per minute units of angular velocity.

See also
AngularVelocity, Time
Minute.

Definition at line 388 of file Units.hpp.