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.h>

Public Member Functions

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

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.h.

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.h.

◆ 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.h.

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.h.

◆ x() [1/2]

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

Definition at line 68 of file transformation2.h.

◆ x() [2/2]

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

Definition at line 63 of file transformation2.h.

◆ y() [1/2]

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

Definition at line 70 of file transformation2.h.

◆ y() [2/2]

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

Definition at line 65 of file transformation2.h.

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.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26