MRPT  2.0.4
List of all members | Public Member Functions | Private Attributes
mrpt::math::CAtan2LookUpTable Class Reference

Detailed Description

A look-up-table (LUT) of atan values for any (x,y) value in a square/rectangular grid of predefined resolution.

See also
mrpt::math::CAtan2LookUpTableMultiRes, mrpt::obs::CSinCosLookUpTableFor2DScans

Definition at line 23 of file CAtan2LookUpTable.h.

#include <mrpt/math/CAtan2LookUpTable.h>

Public Member Functions

 CAtan2LookUpTable () noexcept
 
 CAtan2LookUpTable (double xmin, double xmax, double ymin, double ymax, double resolution) noexcept
 
void resize (double xmin, double xmax, double ymin, double ymax, double resolution) noexcept
 
bool atan2 (double y, double x, double &out_atan2) const noexcept
 Returns the precomputed value for atan2(y,x). More...
 
bool atan2ByIndex (unsigned int iy, unsigned int ix, double &out_atan2) const noexcept
 Returns the precomputed value for atan2() of the corresponding cell with indices (ix,iy). More...
 
double getXMin () const
 
double getXMax () const
 
double getYMin () const
 
double getYMax () const
 
double getResolution () const
 
size_t getSizeX () const
 
size_t getSizeY () const
 

Private Attributes

mrpt::containers::CDynamicGrid< double > m_grid
 

Constructor & Destructor Documentation

◆ CAtan2LookUpTable() [1/2]

CAtan2LookUpTable::CAtan2LookUpTable ( )
noexcept

Definition at line 18 of file CAtan2LookUpTable.cpp.

References resize().

Here is the call graph for this function:

◆ CAtan2LookUpTable() [2/2]

CAtan2LookUpTable::CAtan2LookUpTable ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  resolution 
)
noexcept

Definition at line 22 of file CAtan2LookUpTable.cpp.

References resize().

Here is the call graph for this function:

Member Function Documentation

◆ atan2()

bool mrpt::math::CAtan2LookUpTable::atan2 ( double  y,
double  x,
double &  out_atan2 
) const
inlinenoexcept

Returns the precomputed value for atan2(y,x).

Returns
false if out of grid bounds.

Definition at line 36 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::cellByPos(), and m_grid.

Here is the call graph for this function:

◆ atan2ByIndex()

bool mrpt::math::CAtan2LookUpTable::atan2ByIndex ( unsigned int  iy,
unsigned int  ix,
double &  out_atan2 
) const
inlinenoexcept

Returns the precomputed value for atan2() of the corresponding cell with indices (ix,iy).

Returns
false if out of grid bounds.

Definition at line 46 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::cellByIndex(), and m_grid.

Here is the call graph for this function:

◆ getResolution()

double mrpt::math::CAtan2LookUpTable::getResolution ( ) const
inline

Definition at line 59 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::getResolution(), and m_grid.

Here is the call graph for this function:

◆ getSizeX()

size_t mrpt::math::CAtan2LookUpTable::getSizeX ( ) const
inline

Definition at line 60 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::getSizeX(), and m_grid.

Here is the call graph for this function:

◆ getSizeY()

size_t mrpt::math::CAtan2LookUpTable::getSizeY ( ) const
inline

Definition at line 61 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::getSizeY(), and m_grid.

Here is the call graph for this function:

◆ getXMax()

double mrpt::math::CAtan2LookUpTable::getXMax ( ) const
inline

Definition at line 56 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::getXMax(), and m_grid.

Here is the call graph for this function:

◆ getXMin()

double mrpt::math::CAtan2LookUpTable::getXMin ( ) const
inline

Definition at line 55 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::getXMin(), and m_grid.

Here is the call graph for this function:

◆ getYMax()

double mrpt::math::CAtan2LookUpTable::getYMax ( ) const
inline

Definition at line 58 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::getYMax(), and m_grid.

Here is the call graph for this function:

◆ getYMin()

double mrpt::math::CAtan2LookUpTable::getYMin ( ) const
inline

Definition at line 57 of file CAtan2LookUpTable.h.

References mrpt::containers::CDynamicGrid< T >::getYMin(), and m_grid.

Here is the call graph for this function:

◆ resize()

void CAtan2LookUpTable::resize ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  resolution 
)
noexcept

Definition at line 29 of file CAtan2LookUpTable.cpp.

Referenced by CAtan2LookUpTable().

Here is the caller graph for this function:

Member Data Documentation

◆ m_grid

mrpt::containers::CDynamicGrid<double> mrpt::math::CAtan2LookUpTable::m_grid
private



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020