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