Public Member Functions | Public Attributes | List of all members
AISNavigation::Vector2< T > Struct Template Reference

Template class for representing a 2D point (x and y coordinate) More...

#include <transformation2.hh>

Public Member Functions

norm2 () const
 
 Vector2 (T x, T y)
 
 Vector2 ()
 
const T & x () const
 
T & x ()
 
const T & y () const
 
T & y ()
 

Public Attributes

values [2]
 container for x and y More...
 

Detailed Description

template<class T>
struct AISNavigation::Vector2< T >

Template class for representing a 2D point (x and y coordinate)

Definition at line 54 of file transformation2.hh.

Constructor & Destructor Documentation

template<class T>
AISNavigation::Vector2< T >::Vector2 ( x,
y 
)
inline

Constructor

Definition at line 58 of file transformation2.hh.

template<class T>
AISNavigation::Vector2< T >::Vector2 ( )
inline

Default constructor which sets x and y to 0

Definition at line 60 of file transformation2.hh.

Member Function Documentation

template<class T>
T AISNavigation::Vector2< T >::norm2 ( ) const
inline
Returns
Norm of the vector

Definition at line 73 of file transformation2.hh.

template<class T>
const T& AISNavigation::Vector2< T >::x ( ) const
inline
Returns
Const reference to x

Definition at line 63 of file transformation2.hh.

template<class T>
T& AISNavigation::Vector2< T >::x ( )
inline
Returns
Reference to x

Definition at line 68 of file transformation2.hh.

template<class T>
const T& AISNavigation::Vector2< T >::y ( ) const
inline
Returns
Const reference to y

Definition at line 65 of file transformation2.hh.

template<class T>
T& AISNavigation::Vector2< T >::y ( )
inline
Returns
Reference to y

Definition at line 70 of file transformation2.hh.

Member Data Documentation

template<class T>
T AISNavigation::Vector2< T >::values[2]

container for x and y

Definition at line 55 of file transformation2.hh.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:43:42