PlayRho  2.0.0
An interactive physics engine & library.
Velocity.hpp File Reference

Definition of the Velocity class and closely related code. More...

#include <utility>
#include <playrho/Real.hpp>
#include <playrho/Templates.hpp>
#include <playrho/Units.hpp>
#include <playrho/Vector2.hpp>
Include dependency graph for Velocity.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  playrho::d2::Velocity
 2-D velocity related data structure. More...
 

Namespaces

 playrho
 
 playrho::d2
 

Typedefs

using playrho::d2::VelocityPair = std::pair< Velocity, Velocity >
 Velocity pair.
 

Functions

Velocity playrho::d2::Cap (Velocity velocity, Time h, const MovementConf &conf) noexcept
 Caps velocity. More...
 
constexpr auto playrho::IsValid (const d2::Velocity &value) noexcept -> bool
 Determines if the given value is valid.
 
constexpr bool playrho::d2::operator!= (const Velocity &lhs, const Velocity &rhs)
 Inequality operator.
 
constexpr Velocity playrho::d2::operator* (const Real lhs, const Velocity &rhs)
 Multiplication operator.
 
constexpr Velocity playrho::d2::operator* (const Velocity &lhs, const Real rhs)
 Multiplication operator.
 
constexpr Velocity & playrho::d2::operator*= (Velocity &lhs, const Real rhs)
 Multiplication assignment operator.
 
constexpr Velocity playrho::d2::operator+ (const Velocity &lhs, const Velocity &rhs)
 Addition operator.
 
constexpr Velocity playrho::d2::operator+ (const Velocity &value)
 Positive operator.
 
constexpr Velocity & playrho::d2::operator+= (Velocity &lhs, const Velocity &rhs)
 Addition assignment operator.
 
constexpr Velocity playrho::d2::operator- (const Velocity &lhs, const Velocity &rhs)
 Subtraction operator.
 
constexpr Velocity playrho::d2::operator- (const Velocity &value)
 Negation operator.
 
constexpr Velocity & playrho::d2::operator-= (Velocity &lhs, const Velocity &rhs)
 Subtraction assignment operator.
 
constexpr Velocity playrho::d2::operator/ (const Velocity &lhs, const Real rhs)
 Division operator.
 
constexpr Velocity & playrho::d2::operator/= (Velocity &lhs, const Real rhs)
 Division assignment operator.
 
constexpr bool playrho::d2::operator== (const Velocity &lhs, const Velocity &rhs)
 Equality operator.
 

Detailed Description

Definition of the Velocity class and closely related code.