28 double xmin,
double xmax,
double ymin,
double ymax,
29 double resolution) noexcept;
31 double xmin,
double xmax,
double ymin,
double ymax,
32 double resolution) noexcept;
36 bool atan2(
double y,
double x,
double& out_atan2)
const noexcept
39 if (!cp)
return false;
46 bool atan2ByIndex(
unsigned int iy,
unsigned int ix,
double& out_atan2)
const 50 if (!cp)
return false;
88 const std::map<double, double>& lst_resolutions2extensions) noexcept;
91 const std::map<double, double>& lst_resolutions2extensions) noexcept;
95 bool atan2(
double y,
double x,
double& out_atan2)
const noexcept;
100 std::map<double, mrpt::containers::CDynamicGrid<double>>
m_grids;
double getYMax() const
Returns the "y" coordinate of bottom side of grid map.
mrpt::containers::CDynamicGrid< double > m_grid
CAtan2LookUpTableMultiRes()=default
double getResolution() const
double getResolution() const
Returns the resolution of the grid map.
double getYMin() const
Returns the "y" coordinate of top side of grid map.
void resize(const std::map< double, double > &lst_resolutions2extensions) noexcept
See CAtan2LookUpTableMultiRes for a discussion of the parameters.
A look-up-table (LUT) of atan values for any (x,y) value in a square/rectangular grid of predefined r...
CAtan2LookUpTable() noexcept
bool atan2(double y, double x, double &out_atan2) const noexcept
Returns the precomputed value for atan2(y,x).
This base provides a set of functions for maths stuff.
double getXMin() const
Returns the "x" coordinate of left side of grid map.
std::map< double, mrpt::containers::CDynamicGrid< double > > m_grids
Maps from maximum (X,Y) coordinates to LUT for [-L,L]x[-L,L] square area.
T * cellByPos(double x, double y)
Returns a pointer to the contents of a cell given by its coordinates, or nullptr if it is out of the ...
Like CAtan2LookUpTable but with a multiresolution grid for increasingly better accuracy in points nea...
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).
T * cellByIndex(unsigned int cx, unsigned int cy)
Returns a pointer to the contents of a cell given by its cell indexes, or nullptr if it is out of the...
size_t getSizeX() const
Returns the horizontal size of grid map in cells count.
bool atan2(double y, double x, double &out_atan2) const noexcept
Returns the precomputed value for atan2(y,x).
void resize(double xmin, double xmax, double ymin, double ymax, double resolution) noexcept
size_t getSizeY() const
Returns the vertical size of grid map in cells count.
double getXMax() const
Returns the "x" coordinate of right side of grid map.