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.
◆ SquareSecond
const PLAYRHO_CONSTEXPR auto playrho::SquareSecond = Second * Second |
◆ 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).
◆ Meter
const PLAYRHO_CONSTEXPR auto playrho::Meter = PLAYRHO_UNIT(Length, boost::units::si::meter) |
◆ MeterPerSecond
const PLAYRHO_CONSTEXPR auto playrho::MeterPerSecond |
Meter per second unit of linear velocity.
- See also
- LinearVelocity.
◆ MeterPerSquareSecond
const PLAYRHO_CONSTEXPR auto playrho::MeterPerSquareSecond |
Meter per square second unit of linear acceleration.
- See also
- LinearAcceleration.
◆ Kilogram
const PLAYRHO_CONSTEXPR auto playrho::Kilogram = PLAYRHO_UNIT(Mass, boost::units::si::kilogram) |
◆ SquareMeter
const PLAYRHO_CONSTEXPR auto playrho::SquareMeter = PLAYRHO_UNIT(Area, boost::units::si::square_meter) |
◆ CubicMeter
const PLAYRHO_CONSTEXPR auto playrho::CubicMeter = Meter * Meter * Meter |
◆ KilogramPerSquareMeter
const PLAYRHO_CONSTEXPR auto playrho::KilogramPerSquareMeter |
Kilogram per square meter unit of area density.
- See also
- AreaDensity.
◆ Radian
const PLAYRHO_CONSTEXPR auto playrho::Radian = PLAYRHO_UNIT(Angle, boost::units::si::radian) |
◆ Degree
const PLAYRHO_CONSTEXPR auto playrho::Degree = Angle{Radian * Pi / Real{180}} |
◆ SquareRadian
const PLAYRHO_CONSTEXPR auto playrho::SquareRadian = Radian * Radian |
◆ RadianPerSecond
const PLAYRHO_CONSTEXPR auto playrho::RadianPerSecond |
Radian per second unit of angular velocity.
- See also
- AngularVelocity.
- Radian, Second.
- Examples
- Body.cpp.
◆ DegreePerSecond
const PLAYRHO_CONSTEXPR auto playrho::DegreePerSecond = AngularVelocity{RadianPerSecond * Degree / Radian} |
Degree per second unit of angular velocity.
- See also
- AngularVelocity.
- Degree, Second.
◆ RadianPerSquareSecond
const PLAYRHO_CONSTEXPR auto playrho::RadianPerSquareSecond = Radian / (Second * Second) |
◆ DegreePerSquareSecond
const PLAYRHO_CONSTEXPR auto playrho::DegreePerSquareSecond = Degree / (Second * Second) |
Degree per square second unit of angular acceleration.
- See also
- AngularAcceleration.
- Degree, Second.
◆ Newton
const PLAYRHO_CONSTEXPR auto playrho::Newton = PLAYRHO_UNIT(Force, boost::units::si::newton) |
◆ NewtonMeter
const PLAYRHO_CONSTEXPR auto playrho::NewtonMeter = PLAYRHO_UNIT(Torque, boost::units::si::newton_meter) |
◆ NewtonSecond
const PLAYRHO_CONSTEXPR auto playrho::NewtonSecond = Newton * Second |
◆ NewtonMeterSecond
const PLAYRHO_CONSTEXPR auto playrho::NewtonMeterSecond = NewtonMeter * Second |
◆ 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.