Class CPoint3D

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.

../../output_staging/generated/doxygen/xml/CPoint3D.gif

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 size_type size()
static inline constexpr bool empty()
static inline constexpr size_type max_size()
static inline void resize(const size_t n)

Public Types

enum [anonymous]

Values:

enumerator is_3D_val
enum [anonymous]

Values:

enumerator is_PDF_val

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

explicit CPoint3D(const CPoint2D &p)

Constructor from an CPoint2D object.

explicit CPoint3D(const CPose3D &p)

Constructor from an CPose3D object.

explicit CPoint3D(const CPose2D &p)

Constructor from an CPose2D object.

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

CPose3D operator+(const CPose3D &b) const

Returns this point plus pose “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]

Public Static Functions

static inline constexpr bool is_3D()
static inline constexpr bool is_PDF()