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

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

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

Classes

struct  playrho::d2::Position
 2-D positional data structure. More...
 

Namespaces

 playrho
 
 playrho::d2
 

Functions

constexpr auto playrho::IsValid (const d2::Position &value) noexcept -> bool
 Determines if the given value is valid.
 
constexpr bool playrho::d2::operator!= (const Position &lhs, const Position &rhs)
 Inequality operator.
 
constexpr Position playrho::d2::operator* (const Position &pos, const Real scalar)
 Multiplication operator.
 
constexpr Position playrho::d2::operator* (const Real scalar, const Position &pos)
 Multiplication operator.
 
constexpr Position playrho::d2::operator+ (const Position &lhs, const Position &rhs)
 Addition operator.
 
constexpr Position playrho::d2::operator+ (const Position &value)
 Positive operator.
 
constexpr Position & playrho::d2::operator+= (Position &lhs, const Position &rhs)
 Addition assignment operator.
 
constexpr Position playrho::d2::operator- (const Position &lhs, const Position &rhs)
 Subtraction operator.
 
constexpr Position playrho::d2::operator- (const Position &value)
 Negation operator.
 
constexpr Position & playrho::d2::operator-= (Position &lhs, const Position &rhs)
 Subtraction assignment operator.
 
constexpr bool playrho::d2::operator== (const Position &lhs, const Position &rhs)
 Equality operator.
 

Detailed Description

Definition of the Position class and closely related code.