Class CPoint3D
Defined in File CPoint3D.h
Inheritance Relationships
Base Types
public mrpt::poses::CPoint< CPoint3D, 3 >(Template Class CPoint)public mrpt::serialization::CSerializable
Class Documentation
-
class CPoint3D : public mrpt::poses::CPoint<CPoint3D, 3>, public mrpt::serialization::CSerializable
A class used to store a 3D point.
For a complete description of Points/Poses, see mrpt::poses::CPoseOrPoint, or refer to the 2D/3D Geometry tutorial in the wiki.

See also
STL-like methods and typedefs
-
using value_type = double
The type of the elements
-
using reference = double&
-
using const_reference = double
-
using size_type = std::size_t
-
using difference_type = std::ptrdiff_t
-
static constexpr std::size_t static_size = 3
-
static inline constexpr bool empty()
-
static inline void resize(const size_t n)
Public Types
Public Functions
-
inline CPoint3D()
-
inline CPoint3D(const double x, const double y, const double z)
Constructor for initializing point coordinates.
-
inline explicit CPoint3D(const mrpt::math::CVectorFixedDouble<3> &xyz)
Constructor from a XYZ 3-vector
-
inline explicit CPoint3D(const mrpt::math::TPoint3D &p)
Constructor from lightweight object.
-
mrpt::math::TPoint3D asTPoint() const
-
CPoint3D operator-(const CPose3D &b) const
Returns this point as seen from “b”, i.e. result = this - b
-
CPoint3D operator-(const CPoint3D &b) const
Returns this point minus point “b”, i.e. result = this - b
-
CPoint3D operator+(const CPoint3D &b) const
Returns this point plus point “b”, i.e. result = this + b
-
inline void asVector(vector_t &v) const
Return the pose or point as a 3x1 vector [x y z]’
Public Members
-
mrpt::math::CVectorFixedDouble<3> m_coords
[x,y,z]
-
using value_type = double