ASCO Aerial Autonomy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Velocity Struct Reference

Store velocity vector. More...

#include <velocity.h>

Inheritance diagram for Velocity:
Inheritance graph
[legend]

Public Member Functions

 Velocity ()
 Constructor with implicit instantiation of velocity vector to zero. More...
 
 Velocity (double x, double y, double z)
 Constructor with explicit instantiation. More...
 
bool operator== (const Velocity &v) const
 Check if two velocity vectors are the same. More...
 
bool operator!= (const Velocity &v) const
 Check if two vectors are not equal. More...
 

Public Attributes

double x
 x component in m/s More...
 
double y
 y component in m/s More...
 
double z
 z component in m/s More...
 

Detailed Description

Store velocity vector.

Constructor & Destructor Documentation

Velocity::Velocity ( )
inline

Constructor with implicit instantiation of velocity vector to zero.

Velocity::Velocity ( double  x,
double  y,
double  z 
)
inline

Constructor with explicit instantiation.

Parameters
xx component (m/s)
yy component (m/s)
zz component (m/s)

Member Function Documentation

bool Velocity::operator!= ( const Velocity v) const
inline

Check if two vectors are not equal.

Parameters
vThe vector agains which the current vector is compared.
Returns
True if two vectors are not equal
bool Velocity::operator== ( const Velocity v) const
inline

Check if two velocity vectors are the same.

Parameters
vThe vector agains which the current vector is compared.
Returns
True if vectors are equal

Member Data Documentation

double Velocity::x

x component in m/s

double Velocity::y

y component in m/s

double Velocity::z

z component in m/s


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