ad_physics
Public Types | Public Member Functions | Public Attributes | List of all members
ad::physics::Velocity Struct Reference

DataType Velocity. More...

#include <ad/physics/Velocity.hpp>

Collaboration diagram for ad::physics::Velocity:
Collaboration graph
[legend]

Public Types

typedef std::shared_ptr< VelocityPtr
 Smart pointer on Velocity.
 
typedef std::shared_ptr< Velocity const > ConstPtr
 Smart pointer on constant Velocity.
 

Public Member Functions

 Velocity ()=default
 standard constructor
 
 ~Velocity ()=default
 standard destructor
 
 Velocity (const Velocity &other)=default
 standard copy constructor
 
 Velocity (Velocity &&other)=default
 standard move constructor
 
Velocityoperator= (const Velocity &other)=default
 standard assignment operator More...
 
Velocityoperator= (Velocity &&other)=default
 standard move operator More...
 
bool operator== (const Velocity &other) const
 standard comparison operator More...
 
bool operator!= (const Velocity &other) const
 standard comparison operator More...
 

Public Attributes

::ad::physics::Speed x
 
::ad::physics::Speed y
 
::ad::physics::Speed z
 

Detailed Description

DataType Velocity.

The rate of change of an object's position with respect to a frame of reference.

Velocity is equivalent to a specification of its speed and direction of motion.

Member Function Documentation

◆ operator!=()

bool ad::physics::Velocity::operator!= ( const Velocity other) const
inline

standard comparison operator

Parameters
[in]otherOther Velocity.
Returns
true if both Velocity are different

◆ operator=() [1/2]

Velocity& ad::physics::Velocity::operator= ( const Velocity other)
default

standard assignment operator

Parameters
[in]otherOther Velocity
Returns
Reference to this Velocity.

◆ operator=() [2/2]

Velocity& ad::physics::Velocity::operator= ( Velocity &&  other)
default

standard move operator

Parameters
[in]otherOther Velocity
Returns
Reference to this Velocity.

◆ operator==()

bool ad::physics::Velocity::operator== ( const Velocity other) const
inline

standard comparison operator

Parameters
[in]otherOther Velocity
Returns
true if both Velocity are equal

Member Data Documentation

◆ x

::ad::physics::Speed ad::physics::Velocity::x

The x component of the velocity

◆ y

::ad::physics::Speed ad::physics::Velocity::y

The y component of the velocity

◆ z

::ad::physics::Speed ad::physics::Velocity::z

The z component of the velocity


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