Main MRPT website > C++ reference for MRPT 1.5.3
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 24 of file CAtan2LookUpTable.h.

#include <mrpt/math/CAtan2LookUpTable.h>

Public Member Functions

 CAtan2LookUpTable () MRPT_NO_THROWS
 
 CAtan2LookUpTable (double xmin, double xmax, double ymin, double ymax, double resolution) MRPT_NO_THROWS
 
void resize (double xmin, double xmax, double ymin, double ymax, double resolution) MRPT_NO_THROWS
 
bool atan2 (double y, double x, double &out_atan2) const MRPT_NO_THROWS
 Returns the precomputed value for atan2(y,x). More...
 
double getXMin () const
 
double getXMax () const
 
double getYMin () const
 
double getYMax () const
 
double getResolution () const
 

Private Attributes

mrpt::utils::CDynamicGrid< double > m_grid
 

Constructor & Destructor Documentation

◆ CAtan2LookUpTable() [1/2]

mrpt::math::CAtan2LookUpTable::CAtan2LookUpTable ( )

◆ CAtan2LookUpTable() [2/2]

mrpt::math::CAtan2LookUpTable::CAtan2LookUpTable ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  resolution 
)

Member Function Documentation

◆ atan2()

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

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

Returns
false if out of grid bounds.

◆ getResolution()

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

Definition at line 38 of file CAtan2LookUpTable.h.

◆ getXMax()

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

Definition at line 35 of file CAtan2LookUpTable.h.

◆ getXMin()

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

Definition at line 34 of file CAtan2LookUpTable.h.

◆ getYMax()

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

Definition at line 37 of file CAtan2LookUpTable.h.

◆ getYMin()

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

Definition at line 36 of file CAtan2LookUpTable.h.

◆ resize()

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

Member Data Documentation

◆ m_grid

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

Definition at line 40 of file CAtan2LookUpTable.h.




Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Tue Aug 22 01:03:35 UTC 2017