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

T norm2 () const
 
 Vector2 (T x, T y)
 
 Vector2 ()
 
const Tx () const
 
Tx ()
 
const Ty () const
 
Ty ()
 

Public Attributes

T 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

◆ Vector2() [1/2]

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

Constructor

Definition at line 58 of file transformation2.hh.

◆ Vector2() [2/2]

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

◆ norm2()

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

Definition at line 73 of file transformation2.hh.

◆ x() [1/2]

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

Definition at line 63 of file transformation2.hh.

◆ x() [2/2]

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

Definition at line 68 of file transformation2.hh.

◆ y() [1/2]

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

Definition at line 65 of file transformation2.hh.

◆ y() [2/2]

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

Definition at line 70 of file transformation2.hh.

Member Data Documentation

◆ values

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 Mon Jan 23 2023 03:38:59