2-D velocity related data structure. More...
#include <playrho/d2/Velocity.hpp>
Public Attributes | |
| AngularVelocity | angular {} |
| Angular velocity. | |
| LinearVelocity2 | linear {} |
| Linear velocity. | |
Related Functions | |
(Note that these are not member functions.) | |
| Velocity | Cap (Velocity velocity, Time h, const MovementConf &conf) noexcept |
| Caps velocity. More... | |
| constexpr auto | IsValid (const d2::Velocity &value) noexcept -> bool |
| Determines if the given value is valid. | |
| constexpr bool | operator!= (const Velocity &lhs, const Velocity &rhs) |
| Inequality operator. | |
| constexpr Velocity | operator* (const Real lhs, const Velocity &rhs) |
| Multiplication operator. | |
| constexpr Velocity | operator* (const Velocity &lhs, const Real rhs) |
| Multiplication operator. | |
| constexpr Velocity & | operator*= (Velocity &lhs, const Real rhs) |
| Multiplication assignment operator. | |
| constexpr Velocity | operator+ (const Velocity &lhs, const Velocity &rhs) |
| Addition operator. | |
| constexpr Velocity | operator+ (const Velocity &value) |
| Positive operator. | |
| constexpr Velocity & | operator+= (Velocity &lhs, const Velocity &rhs) |
| Addition assignment operator. | |
| constexpr Velocity | operator- (const Velocity &lhs, const Velocity &rhs) |
| Subtraction operator. | |
| constexpr Velocity | operator- (const Velocity &value) |
| Negation operator. | |
| constexpr Velocity & | operator-= (Velocity &lhs, const Velocity &rhs) |
| Subtraction assignment operator. | |
| constexpr Velocity | operator/ (const Velocity &lhs, const Real rhs) |
| Division operator. | |
| constexpr Velocity & | operator/= (Velocity &lhs, const Real rhs) |
| Division assignment operator. | |
| constexpr bool | operator== (const Velocity &lhs, const Velocity &rhs) |
| Equality operator. | |
2-D velocity related data structure.
|
related |
Caps velocity.
Enforces maximums on the given velocity.
| velocity | Velocity to cap. |
| h | Time elapsed to get velocity for. |
| conf | Movement configuration. This defines caps on linear and angular speeds. |