19 static_assert(std::is_trivial_v<TPoint2D_data<float>>);
20 static_assert(std::is_trivial_v<TPoint2D_data<double>>);
21 static_assert(std::is_trivially_copyable_v<TPoint2D>);
22 static_assert(std::is_trivially_copyable_v<TPoint2Df>);
46 else if (this->x > p.
x)
59 m.
rows() == 1 && m.
cols() == 2,
"Wrong size of vector in ::fromString");
#define THROW_EXCEPTION(msg)
constexpr TPoint2D_()
Default constructor.
This base provides a set of functions for maths stuff.
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
bool fromMatlabStringFormat(const std::string &s, mrpt::optional_ref< std::ostream > dump_errors_here=std::nullopt)
Reads a matrix from a string in Matlab-like format, for example: "[1 0 2; 0 4 -1]" The string must st...
size_type rows() const
Number of rows in the matrix.
size_type cols() const
Number of columns in the matrix.
Base template for TPoint2D and TPoint2Df.
Base template for TPoint3D and TPoint3Df.
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).
bool operator<(const COccupancyGridMap2D::TPairLikelihoodIndex &e1, const COccupancyGridMap2D::TPairLikelihoodIndex &e2)
This template class provides the basic functionality for a general 2D any-size, resizable container o...