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

DataType Distance2D. More...

#include <ad/physics/Distance2D.hpp>

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

Public Types

typedef std::shared_ptr< Distance2DPtr
 Smart pointer on Distance2D.
 
typedef std::shared_ptr< Distance2D const > ConstPtr
 Smart pointer on constant Distance2D.
 

Public Member Functions

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

Public Attributes

::ad::physics::Distance x
 
::ad::physics::Distance y
 

Detailed Description

DataType Distance2D.

The vector of distances between two points along the axes of a coordinate frame of reference (minimum distance).

Member Function Documentation

◆ operator!=()

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

standard comparison operator

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

◆ operator=() [1/2]

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

standard assignment operator

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

◆ operator=() [2/2]

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

standard move operator

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

◆ operator==()

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

standard comparison operator

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

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