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>
|
| 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...
|
|
double | getXMin () const |
|
double | getXMax () const |
|
double | getYMin () const |
|
double | getYMax () const |
|
double | getResolution () const |
|
◆ CAtan2LookUpTable() [1/2]
CAtan2LookUpTable::CAtan2LookUpTable |
( |
| ) |
|
|
noexcept |
◆ CAtan2LookUpTable() [2/2]
CAtan2LookUpTable::CAtan2LookUpTable |
( |
double |
xmin, |
|
|
double |
xmax, |
|
|
double |
ymin, |
|
|
double |
ymax, |
|
|
double |
resolution |
|
) |
| |
|
noexcept |
◆ atan2()
bool CAtan2LookUpTable::atan2 |
( |
double |
y, |
|
|
double |
x, |
|
|
double & |
out_atan2 |
|
) |
| const |
|
noexcept |
Returns the precomputed value for atan2(y,x).
- Returns
- false if out of grid bounds.
Definition at line 58 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 |
|
) |
| |
|
noexcept |
◆ m_grid