PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
Units For Physical Quantities

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

Variables

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

◆ Degree

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

Degree unit of angle quantity.

See also
Angle.
Radian.
Examples
WorldBody.cpp.

Referenced by playrho::operator""_deg().

◆ DegreePerSecond

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

Degree per second unit of angular velocity.

See also
AngularVelocity.
Degree, Second.

◆ DegreePerSquareSecond

constexpr auto playrho::DegreePerSquareSecond = Degree / (Second * Second)
constexpr

Degree per square second unit of angular acceleration.

See also
AngularAcceleration.
Degree, Second.

◆ Hertz

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

Hertz unit of Frequency.

Represents the hertz unit of frequency (Hz).

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

Referenced by playrho::operator""_Hz().

◆ Kilogram

◆ KilogramPerSquareMeter

constexpr auto playrho::KilogramPerSquareMeter
constexpr
Initial value:
=
PLAYRHO_UNIT(AreaDensity, boost::units::si::kilogram_per_square_meter)

Kilogram per square meter unit of area density.

See also
AreaDensity.

Referenced by playrho::operator""_kgpm2().

◆ Meter

◆ MeterPerSecond

constexpr auto playrho::MeterPerSecond = PLAYRHO_UNIT(LinearVelocity, boost::units::si::meter_per_second)
constexpr

◆ MeterPerSquareSecond

constexpr auto playrho::MeterPerSquareSecond
constexpr
Initial value:
=
PLAYRHO_UNIT(LinearAcceleration, boost::units::si::meter_per_second_squared)

Meter per square second unit of linear acceleration.

See also
LinearAcceleration.
Examples
DistanceJoint.cpp, RevoluteJoint.cpp, World.cpp, and WorldBody.cpp.

Referenced by playrho::operator""_mps2().

◆ Newton

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

Newton unit of force.

See also
Force.
Examples
PrismaticJoint.cpp, and WorldBody.cpp.

Referenced by playrho::operator""_N().

◆ NewtonMeter

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

Newton meter unit of torque.

See also
Torque.
Newton, Meter.
Examples
RevoluteJoint.cpp, and WheelJoint.cpp.

Referenced by playrho::operator""_Nm().

◆ NewtonMeterSecond

constexpr auto playrho::NewtonMeterSecond = NewtonMeter * Second
constexpr

Newton meter second unit of angular momentum.

See also
AngularMomentum.
Newton, Meter, Second.
Examples
RevoluteJoint.cpp, and WorldBody.cpp.

◆ NewtonSecond

constexpr auto playrho::NewtonSecond = Newton * Second
constexpr

◆ Radian

◆ RadianPerSecond

constexpr auto playrho::RadianPerSecond = PLAYRHO_UNIT(AngularVelocity, boost::units::si::radian_per_second)
constexpr

Radian per second unit of angular velocity.

See also
AngularVelocity.
Radian, Second.
Examples
PrismaticJoint.cpp, RevoluteJoint.cpp, WheelJoint.cpp, and WorldBody.cpp.

Referenced by playrho::d2::SolveVelocity().

◆ RadianPerSquareSecond

constexpr auto playrho::RadianPerSquareSecond = Radian / (Second * Second)
constexpr

Radian per square second unit of angular acceleration.

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

Referenced by playrho::d2::CalcGravitationalAcceleration().

◆ RevolutionsPerMinute

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

Revolutions per minute units of angular velocity.

See also
AngularVelocity, Time
Minute.

Referenced by playrho::operator""_rpm().

◆ Second

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

◆ SquareMeter

◆ SquareRadian

◆ SquareSecond

constexpr auto playrho::SquareSecond = Second * Second
constexpr

Square second unit.

See also
Second
Examples
WorldBody.cpp.
playrho::LinearAcceleration
PLAYRHO_QUANTITY(boost::units::si::acceleration) LinearAcceleration
Linear acceleration quantity.
Definition: Units.hpp:176
playrho::AreaDensity
PLAYRHO_QUANTITY(boost::units::si::surface_density) AreaDensity
Area (surface) density quantity.
Definition: Units.hpp:209