playrho::d2::Acceleration Struct Reference

2-D acceleration related data structure. More...

#include <Acceleration.hpp>

Public Attributes

LinearAcceleration2 linear
 Linear acceleration. More...
 
AngularAcceleration angular
 Angular acceleration. More...
 

Related Functions

(Note that these are not member functions.)

PLAYRHO_CONSTEXPR bool operator== (const Acceleration &lhs, const Acceleration &rhs)
 Equality operator. More...
 
PLAYRHO_CONSTEXPR bool operator!= (const Acceleration &lhs, const Acceleration &rhs)
 Inequality operator. More...
 
PLAYRHO_CONSTEXPR Accelerationoperator*= (Acceleration &lhs, const Real rhs)
 Multiplication assignment operator. More...
 
PLAYRHO_CONSTEXPR Accelerationoperator/= (Acceleration &lhs, const Real rhs)
 Division assignment operator. More...
 
PLAYRHO_CONSTEXPR Accelerationoperator+= (Acceleration &lhs, const Acceleration &rhs)
 Addition assignment operator. More...
 
PLAYRHO_CONSTEXPR Acceleration operator+ (const Acceleration &lhs, const Acceleration &rhs)
 Addition operator. More...
 
PLAYRHO_CONSTEXPR Accelerationoperator-= (Acceleration &lhs, const Acceleration &rhs)
 Subtraction assignment operator. More...
 
PLAYRHO_CONSTEXPR Acceleration operator- (const Acceleration &lhs, const Acceleration &rhs)
 Subtraction operator. More...
 
PLAYRHO_CONSTEXPR Acceleration operator- (const Acceleration &value)
 Negation operator. More...
 
PLAYRHO_CONSTEXPR Acceleration operator+ (const Acceleration &value)
 Positive operator. More...
 
PLAYRHO_CONSTEXPR Acceleration operator* (const Acceleration &lhs, const Real rhs)
 Multiplication operator. More...
 
PLAYRHO_CONSTEXPR Acceleration operator* (const Real lhs, const Acceleration &rhs)
 Multiplication operator. More...
 
PLAYRHO_CONSTEXPR Acceleration operator/ (const Acceleration &lhs, const Real rhs)
 Division operator. More...
 
template<>
PLAYRHO_CONSTEXPR bool IsValid (const d2::Acceleration &value) noexcept
 Determines if the given value is valid. More...
 

Detailed Description

2-D acceleration related data structure.

Note
This data structure is 12-bytes (with 4-byte Real on at least one 64-bit platform).
Examples
Body.cpp, and World.cpp.

Definition at line 33 of file Acceleration.hpp.

Friends And Related Function Documentation

◆ operator==()

PLAYRHO_CONSTEXPR bool operator== ( const Acceleration lhs,
const Acceleration rhs 
)
related

Equality operator.

Definition at line 41 of file Acceleration.hpp.

◆ operator!=()

PLAYRHO_CONSTEXPR bool operator!= ( const Acceleration lhs,
const Acceleration rhs 
)
related

Inequality operator.

Definition at line 48 of file Acceleration.hpp.

◆ operator*=()

PLAYRHO_CONSTEXPR Acceleration & operator*= ( Acceleration lhs,
const Real  rhs 
)
related

Multiplication assignment operator.

Definition at line 55 of file Acceleration.hpp.

◆ operator/=()

PLAYRHO_CONSTEXPR Acceleration & operator/= ( Acceleration lhs,
const Real  rhs 
)
related

Division assignment operator.

Definition at line 64 of file Acceleration.hpp.

◆ operator+=()

PLAYRHO_CONSTEXPR Acceleration & operator+= ( Acceleration lhs,
const Acceleration rhs 
)
related

Addition assignment operator.

Definition at line 73 of file Acceleration.hpp.

◆ operator+() [1/2]

PLAYRHO_CONSTEXPR Acceleration operator+ ( const Acceleration lhs,
const Acceleration rhs 
)
related

Addition operator.

Definition at line 82 of file Acceleration.hpp.

◆ operator-=()

PLAYRHO_CONSTEXPR Acceleration & operator-= ( Acceleration lhs,
const Acceleration rhs 
)
related

Subtraction assignment operator.

Definition at line 89 of file Acceleration.hpp.

◆ operator-() [1/2]

PLAYRHO_CONSTEXPR Acceleration operator- ( const Acceleration lhs,
const Acceleration rhs 
)
related

Subtraction operator.

Definition at line 98 of file Acceleration.hpp.

◆ operator-() [2/2]

PLAYRHO_CONSTEXPR Acceleration operator- ( const Acceleration value)
related

Negation operator.

Definition at line 105 of file Acceleration.hpp.

◆ operator+() [2/2]

PLAYRHO_CONSTEXPR Acceleration operator+ ( const Acceleration value)
related

Positive operator.

Definition at line 112 of file Acceleration.hpp.

◆ operator*() [1/2]

PLAYRHO_CONSTEXPR Acceleration operator* ( const Acceleration lhs,
const Real  rhs 
)
related

Multiplication operator.

Definition at line 119 of file Acceleration.hpp.

◆ operator*() [2/2]

PLAYRHO_CONSTEXPR Acceleration operator* ( const Real  lhs,
const Acceleration rhs 
)
related

Multiplication operator.

Definition at line 126 of file Acceleration.hpp.

◆ operator/()

PLAYRHO_CONSTEXPR Acceleration operator/ ( const Acceleration lhs,
const Real  rhs 
)
related

Division operator.

Definition at line 133 of file Acceleration.hpp.

◆ IsValid()

PLAYRHO_CONSTEXPR bool IsValid ( const d2::Acceleration value)
related

Determines if the given value is valid.

Definition at line 144 of file Acceleration.hpp.

Member Data Documentation

◆ linear

LinearAcceleration2 playrho::d2::Acceleration::linear

Linear acceleration.

Examples
World.cpp.

Definition at line 35 of file Acceleration.hpp.

◆ angular

AngularAcceleration playrho::d2::Acceleration::angular

Angular acceleration.

Definition at line 36 of file Acceleration.hpp.


The documentation for this struct was generated from the following file: