PlayRho  2.0.0
An interactive physics engine & library.
Physical Quantity Types

Types for physical quantities. More...

Typedefs

using playrho::Angle = detail::plane_angle
 Angle quantity. More...
 
using playrho::AngularAcceleration = detail::angular_acceleration
 Angular acceleration quantity. More...
 
using playrho::AngularMomentum = detail::angular_momentum
 Angular momentum quantity. More...
 
using playrho::AngularVelocity = detail::angular_velocity
 Angular velocity quantity. More...
 
using playrho::Area = detail::area
 Area quantity. More...
 
using playrho::AreaDensity = detail::surface_density
 Area (surface) density quantity. More...
 
using playrho::Force = detail::force
 Force quantity. More...
 
using playrho::Frequency = detail::frequency
 Frequency quantity. More...
 
using playrho::InvMass = detail::inverse_mass
 Inverse mass quantity. More...
 
using playrho::InvRotInertia = detail::inverse_moment_of_inertia
 Inverse rotational inertia quantity. More...
 
using playrho::Length = detail::length
 Length quantity. More...
 
using playrho::LinearAcceleration = detail::acceleration
 Linear acceleration quantity. More...
 
using playrho::LinearVelocity = detail::velocity
 Linear velocity quantity. More...
 
using playrho::Mass = detail::mass
 Mass quantity. More...
 
using playrho::Momentum = detail::momentum
 Momentum quantity. More...
 
using playrho::RotInertia = detail::moment_of_inertia
 Rotational inertia quantity. More...
 
using playrho::SecondMomentOfArea = detail::second_moment_of_area
 Second moment of area quantity. More...
 
using playrho::Time = detail::time
 Time quantity. More...
 
using playrho::Torque = detail::torque
 Torque quantity. More...
 

Detailed Description

Types for physical quantities.

These are the type aliases for physical quantities like time and length that are used by the PlayRho library. Conceptually a given quantity is only expressable in the units that are defined for that quantity.

See also
Units For Physical Quantities
https://en.wikipedia.org/wiki/List_of_physical_quantities

Typedef Documentation

◆ Angle

Angle quantity.

This is the type alias for the plane angle base quantity.

Note
This quantity's dimension is: plane angle (QP).
See also
Radian, Degree.
Examples
RevoluteJoint.cpp, and World.cpp.

◆ AngularAcceleration

Angular acceleration quantity.

This is the type alias for the angular acceleration quantity. It's a derived quantity.

Note
This quantity's dimensions are: plane angle per time squared (QP T^-2).
The SI derived unit of angular acceleration is the radian per second-squared.
See also
Angle, Time, AngularVelocity.
RadianPerSquareSecond, DegreePerSquareSecond.
https://en.wikipedia.org/wiki/Angular_acceleration
Examples
WorldBody.cpp.

◆ AngularMomentum

Angular momentum quantity.

This is the type alias for the angular momentum quantity. It's a derived quantity.

Note
This quantity's dimensions are: length-squared mass per time per angle (L^2 M T^-1 QP^-1).
The SI derived unit of angular momentum is the kilogram meter-squared per second.
See also
Length, Mass, Time, Angle, Momentum.
NewtonMeterSecond.
https://en.wikipedia.org/wiki/Angular_momentum
Examples
DistanceJoint.cpp, FrictionJoint.cpp, GearJoint.cpp, Joint.cpp, MotorJoint.cpp, PrismaticJoint.cpp, PulleyJoint.cpp, RevoluteJoint.cpp, RopeJoint.cpp, TargetJoint.cpp, WeldJoint.cpp, WheelJoint.cpp, and WorldBody.cpp.

◆ AngularVelocity

Angular velocity quantity.

This is the type alias for the plane angular velocity quantity. It's a derived quantity.

Note
This quantity's dimensions are: plane angle per time (QP T^-1).
The SI derived unit of angular velocity is the radian per second.
See also
Angle, Time.
RadianPerSecond, DegreePerSecond.
https://en.wikipedia.org/wiki/Angular_velocity
Examples
RevoluteJoint.cpp, WheelJoint.cpp, and WorldBody.cpp.

◆ Area

using playrho::Area = typedef detail::area

Area quantity.

This is the type alias for the area quantity. It's a derived quantity.

Note
This quantity's dimension is: length squared (L^2).
The SI unit of area is the square-meter.
See also
Length.
SquareMeter.
https://en.wikipedia.org/wiki/Area

◆ AreaDensity

Area (surface) density quantity.

This is the type alias for the area density quantity. It's a derived quantity.

Note
This quantity's dimensions are: mass per area (M L^-2).
The SI derived unit of area density is kilogram per meter-squared.
See also
Mass, Area.
KilogramPerSquareMeter.
https://en.wikipedia.org/wiki/Area_density
Examples
WorldShape.cpp.

◆ Force

using playrho::Force = typedef detail::force

Force quantity.

This is the type alias for the force quantity. It's a derived quantity.

Note
This quantity's dimensions are: length mass per time squared (L M T^-2).
The SI derived unit of force is the newton.
See also
Length, Mass, Time.
Newton.
https://en.wikipedia.org/wiki/Force
Examples
TargetJoint.cpp.

◆ Frequency

Frequency quantity.

This is the type alias for the frequency quantity. It's a derived quantity that's the inverse of time.

Note
This quantity's dimension is: inverse time (T^-1).
The SI unit of frequency is the hertz.
See also
Time.
Hertz.
https://en.wikipedia.org/wiki/Frequency

◆ InvMass

Inverse mass quantity.

This is the type alias for the inverse mass quantity. It's a derived quantity that's the inverse of mass.

Note
This quantity's dimension is: inverse mass (M^-1).
See also
Mass.
Examples
TargetJoint.cpp.

◆ InvRotInertia

Inverse rotational inertia quantity.

This is the type alias for the inverse rotational inertia quantity. It's a derived quantity.

Note
This quantity's dimensions are: angle-squared per length-squared per mass (L^-2 M^-1 QP^2).
See also
Length, Mass, Angle, RotInertia.
Examples
DistanceJoint.cpp, FrictionJoint.cpp, GearJoint.cpp, MotorJoint.cpp, PrismaticJoint.cpp, PulleyJoint.cpp, RevoluteJoint.cpp, RopeJoint.cpp, TargetJoint.cpp, WeldJoint.cpp, and WheelJoint.cpp.

◆ Length

Length quantity.

This is the type alias for the length base quantity.

Note
This quantity's dimension is: length (L).
The SI unit of length is the meter.
See also
Meter.
https://en.wikipedia.org/wiki/Length
Examples
Compositor.cpp, DistanceJoint.cpp, PrismaticJoint.cpp, WheelJoint.cpp, and World.cpp.

◆ LinearAcceleration

Linear acceleration quantity.

This is the type alias for the linear acceleration derived quantity.

Note
This quantity's dimensions are: length over time squared (L T^-2).
The SI unit of linear acceleration is meters per second squared.
See also
Length, Time, LinearVelocity.
MeterPerSquareSecond.
https://en.wikipedia.org/wiki/Acceleration
Examples
WorldBody.cpp.

◆ LinearVelocity

Linear velocity quantity.

This is the type alias for the linear velocity derived quantity.

Note
This quantity's dimensions are: length over time (L T^-1).
The SI unit of linear velocity is meters per second.
See also
Length, Time.
MeterPerSecond.
https://en.wikipedia.org/wiki/Speed
Examples
PrismaticJoint.cpp, WorldBody.cpp, and WorldContact.cpp.

◆ Mass

using playrho::Mass = typedef detail::mass

Mass quantity.

This is the type alias for the mass base quantity.

Note
This quantity's dimension is: mass (M).
The SI unit of mass is the kilogram.
See also
Kilogram.
https://en.wikipedia.org/wiki/Mass
Examples
World.cpp.

◆ Momentum

Momentum quantity.

This is the type alias for the momentum quantity. It's a derived quantity.

Note
This quantity's dimensions are: length mass per time (L M T^-1).
The SI derived unit of momentum is the kilogram meter per second.
If p is momentum, m is mass, and v is velocity, then p = m * v.
See also
Length, Mass, Time.
NewtonSecond.
https://en.wikipedia.org/wiki/Momentum
Examples
PrismaticJoint.cpp, and World.cpp.

◆ RotInertia

Rotational inertia quantity.

This is the type alias for the rotational inertia quantity. It's a derived quantity that's also called the moment of inertia or angular mass.

Note
This quantity's dimensions are: length-squared mass per angle-squared (L^2 M QP^-2).
The SI derived unit of rotational inertia is the kilogram meter-squared (kg * m^2).
See also
Length, Mass, Angle, InvRotInertia.
https://en.wikipedia.org/wiki/Moment_of_inertia
Examples
FrictionJoint.cpp, MotorJoint.cpp, RevoluteJoint.cpp, WeldJoint.cpp, WheelJoint.cpp, and World.cpp.

◆ SecondMomentOfArea

Second moment of area quantity.

This is the type alias for the second moment of area quantity. It's a derived quantity.

Note
This quantity's dimensions are: length-squared-squared (L^4).
See also
Length.
https://en.wikipedia.org/wiki/Second_moment_of_area

◆ Time

using playrho::Time = typedef detail::time

Time quantity.

This is the type alias for the time base quantity.

Note
This quantity's dimension is: time (T).
The SI unit of time is the second.
See also
Second.
https://en.wikipedia.org/wiki/Time_in_physics

◆ Torque

Torque quantity.

This is the type alias for the torque quantity. It's a derived quantity that's a rotational force.

Note
This quantity's dimensions are: length-squared mass per time-squared per angle (L^2 M T^-2 QP^-1).
The SI derived unit of torque is the newton meter.
See also
Length, Mass, Time, Angle.
NewtonMeter.
https://en.wikipedia.org/wiki/Torque
Examples
RevoluteJoint.cpp, WheelJoint.cpp, and WorldBody.cpp.