Go to the documentation of this file.
53 template <
class OTHERCLASS>
108 static inline bool empty() {
return false; }
113 throw std::logic_error(
115 "Try to change the size of CPoint2D to %u.",
116 static_cast<unsigned>(
n)));
A base class for representing a point in 2D or 3D.
mrpt::math::CArrayDouble< 2 > m_coords
[x,y]
const double & const_reference
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
static size_type max_size()
The base template class for 2D & 3D points and poses.
CPoint2D(const mrpt::math::TPoint2D &o)
Implicit constructor from lightweight type.
CPoint2D operator-(const CPose2D &b) const
The operator D="this"-b is the pose inverse compounding operator, the resulting points "D" fulfils: "...
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle.
double x() const
Common members of all points & poses classes.
double x
X,Y,Z coordinates.
The virtual base class which provides a unified interface for all persistent objects in MRPT.
mrpt::math::TPoint2D asTPoint() const
CPoint2D(const CPoseOrPoint< OTHERCLASS > &b)
Constructor from x/y coordinates given from other pose.
CArrayNumeric is an array for numeric types supporting several mathematical operations (actually,...
void setToNaN() override
Set all data fields to quiet NaN.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
CPoint2D(const mrpt::math::TPoint3D &o)
Explicit constructor from lightweight type (loses the z coord).
static void resize(const size_t n)
CPoint2D(double x=0, double y=0)
Constructor for initializing point coordinates.
A class used to store a 2D point.
std::ptrdiff_t difference_type
double value_type
The type of the elements.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |