42 inline CPoint3D(
const double x = 0,
const double y = 0,
const double z = 0)
109 static inline bool empty() {
return false; }
114 throw std::logic_error(
116 "Try to change the size of CPoint3D to %u.",
117 static_cast<unsigned>(
n)));
double x() const
Common members of all points & poses classes.
void setToNaN() override
Set all data fields to quiet NaN.
The virtual base class which provides a unified interface for all persistent objects in MRPT...
mrpt::math::CArrayDouble< 3 > m_coords
[x,y,z]
CPoint3D(const mrpt::math::TPoint3D &p)
Constructor from lightweight object.
double value_type
The type of the elements.
A base class for representing a point in 2D or 3D.
CPoint3D(const mrpt::math::CArrayDouble< 3 > &xyz)
Constructor from a XYZ 3-vector.
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 point.
A class used to store a 3D point.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
std::ptrdiff_t difference_type
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
CPoint3D operator-(const CPose3D &b) const
Returns this point as seen from "b", i.e.
CPoint3D(const double x=0, const double y=0, const double z=0)
Constructor for initializing point coordinates.
static void resize(const size_t n)
static size_type max_size()
CPoint3D operator+(const CPoint3D &b) const
Returns this point plus point "b", i.e.
const double & const_reference