Go to the documentation of this file.
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;
size_t getSizeY() const
Returns the vertical size of grid map in cells count.
double getResolution() const
double getYMin() const
Returns the "y" coordinate of top side of grid map.
double getXMax() const
Returns the "x" coordinate of right side of grid map.
CAtan2LookUpTable() noexcept
Like CAtan2LookUpTable but with a multiresolution grid for increasingly better accuracy in points nea...
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 ...
mrpt::containers::CDynamicGrid< double > m_grid
double getXMin() const
Returns the "x" coordinate of left side of grid map.
size_t getSizeX() const
Returns the horizontal size of grid map in cells count.
CAtan2LookUpTableMultiRes()=default
A look-up-table (LUT) of atan values for any (x,y) value in a square/rectangular grid of predefined r...
double getYMax() const
Returns the "y" coordinate of bottom side of grid map.
double getResolution() const
Returns the resolution of the grid map.
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...
void resize(const std::map< double, double > &lst_resolutions2extensions) noexcept
See CAtan2LookUpTableMultiRes for a discussion of the parameters.
bool atan2(double y, double x, double &out_atan2) const noexcept
Returns the precomputed value for atan2(y,x).
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,...
void resize(double xmin, double xmax, double ymin, double ymax, double resolution) noexcept
This base provides a set of functions for maths stuff.
bool atan2(double y, double x, double &out_atan2) const noexcept
Returns the precomputed value for atan2(y,x).
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.
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 17:54:30 UTC 2020 | |