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>
|
| 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 |
|
◆ CAtan2LookUpTable() [1/2]
CAtan2LookUpTable::CAtan2LookUpTable |
( |
| ) |
|
◆ CAtan2LookUpTable() [2/2]
CAtan2LookUpTable::CAtan2LookUpTable |
( |
double |
xmin, |
|
|
double |
xmax, |
|
|
double |
ymin, |
|
|
double |
ymax, |
|
|
double |
resolution |
|
) |
| |
◆ atan2()
bool 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.
Definition at line 53 of file CAtan2LookUpTable.cpp.
◆ getResolution()
double mrpt::math::CAtan2LookUpTable::getResolution |
( |
| ) |
const |
|
inline |
◆ getXMax()
double mrpt::math::CAtan2LookUpTable::getXMax |
( |
| ) |
const |
|
inline |
◆ getXMin()
double mrpt::math::CAtan2LookUpTable::getXMin |
( |
| ) |
const |
|
inline |
◆ getYMax()
double mrpt::math::CAtan2LookUpTable::getYMax |
( |
| ) |
const |
|
inline |
◆ getYMin()
double mrpt::math::CAtan2LookUpTable::getYMin |
( |
| ) |
const |
|
inline |
◆ resize()
void CAtan2LookUpTable::resize |
( |
double |
xmin, |
|
|
double |
xmax, |
|
|
double |
ymin, |
|
|
double |
ymax, |
|
|
double |
resolution |
|
) |
| |
◆ m_grid