Go to the documentation of this file.
20 static_assert(std::is_trivial_v<TPoint3D_data<float>>);
21 static_assert(std::is_trivial_v<TPoint3D_data<double>>);
22 static_assert(std::is_trivially_copyable_v<TPoint3D>);
23 static_assert(std::is_trivially_copyable_v<TPoint3Df>);
48 else if (this->x > p.
x)
50 else if (this->y < p.
y)
52 else if (this->y > p.
y)
65 m.
rows() == 1 && m.
cols() == 3,
"Wrong size of vector in ::fromString");
78 return in >> p.
pt >> p.
r >> p.
g >> p.
b;
83 return out << p.
pt << p.
r << p.
g << p.
b;
89 return in >> p.
pt >> p.
r >> p.
g >> p.
b >> p.
a;
94 return out << p.
pt << p.
r << p.
g << p.
b << p.
a;
XYZ point (float) + RGB(u8)
Base template for TPoint3D and TPoint3Df.
bool fromMatlabStringFormat(const std::string &s, mrpt::optional_ref< std::ostream > dump_errors_here=std::nullopt)
Reads a matrix from a string in Matlab-like format, for example: "[1 0 2; 0 4 -1]" The string must st...
mrpt::serialization::CArchive & operator<<(mrpt::serialization::CArchive &s, const CVectorFloat &a)
Base template for TPoint2D and TPoint2Df.
mrpt::vision::TStereoCalibResults out
#define THROW_EXCEPTION(msg)
bool operator<(const TPoint3D_< T > &p) const
Virtual base class for "archives": classes abstracting I/O streams.
constexpr TPoint3D_()
Default constructor.
void fromString(const std::string &s)
Set the current object value from a string generated by 'asString' (eg: "[0.02 1.04 -0....
XYZ point (float) + RGBA(u8)
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).
Trivially copiable underlying data for TPoint3D 1-byte memory packed, no padding].
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
This base provides a set of functions for maths stuff.
size_type cols() const
Number of columns in the matrix.
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &in, CMatrixD::Ptr &pObj)
This template class provides the basic functionality for a general 2D any-size, resizable container o...
size_type rows() const
Number of rows in the matrix.
Page generated by Doxygen 1.8.18 for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020 | |