Like CAtan2LookUpTable but with a multiresolution grid for increasingly better accuracy in points nearer to the origin.
Example of usage:
Definition at line 57 of file CAtan2LookUpTable.h.
#include <mrpt/math/CAtan2LookUpTable.h>
Public Member Functions | |
CAtan2LookUpTableMultiRes () MRPT_NO_THROWS | |
CAtan2LookUpTableMultiRes (const std::map< double, double > &lst_resolutions2extensions) MRPT_NO_THROWS | |
See CAtan2LookUpTableMultiRes for a discussion of the parameters. More... | |
void | resize (const std::map< double, double > &lst_resolutions2extensions) MRPT_NO_THROWS |
See CAtan2LookUpTableMultiRes for a discussion of the parameters. More... | |
bool | atan2 (double y, double x, double &out_atan2) const MRPT_NO_THROWS |
Returns the precomputed value for atan2(y,x). More... | |
Private Attributes | |
std::map< double, mrpt::utils::CDynamicGrid< double > > | m_grids |
Maps from maximum (X,Y) coordinates to LUT for [-L,L]x[-L,L] square area. More... | |
CAtan2LookUpTableMultiRes::CAtan2LookUpTableMultiRes | ( | ) |
Definition at line 63 of file CAtan2LookUpTable.cpp.
CAtan2LookUpTableMultiRes::CAtan2LookUpTableMultiRes | ( | const std::map< double, double > & | lst_resolutions2extensions | ) |
See CAtan2LookUpTableMultiRes for a discussion of the parameters.
Definition at line 66 of file CAtan2LookUpTable.cpp.
bool CAtan2LookUpTableMultiRes::atan2 | ( | double | y, |
double | x, | ||
double & | out_atan2 | ||
) | const |
Returns the precomputed value for atan2(y,x).
Definition at line 100 of file CAtan2LookUpTable.cpp.
References mrpt::utils::CDynamicGrid< T >::cellByPos().
void CAtan2LookUpTableMultiRes::resize | ( | const std::map< double, double > & | lst_resolutions2extensions | ) |
See CAtan2LookUpTableMultiRes for a discussion of the parameters.
Definition at line 70 of file CAtan2LookUpTable.cpp.
References mrpt::utils::CDynamicGrid< T >::cellByIndex(), mrpt::utils::CDynamicGrid< T >::getSizeX(), mrpt::utils::CDynamicGrid< T >::getSizeY(), mrpt::utils::CDynamicGrid< T >::idx2x(), and mrpt::utils::CDynamicGrid< T >::idx2y().
Referenced by TEST().
|
private |
Maps from maximum (X,Y) coordinates to LUT for [-L,L]x[-L,L] square area.
Definition at line 67 of file CAtan2LookUpTable.h.
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |