80 buf,
sizeof(buf),
"RGBA=[%u,%u,%u,%u]", static_cast<unsigned int>(
c.R),
81 static_cast<unsigned int>(
c.G), static_cast<unsigned int>(
c.B),
82 static_cast<unsigned int>(
c.A));
90 o <<
c.R <<
c.G <<
c.B <<
c.A;
96 i >>
c.R >>
c.G >>
c.B >>
c.A;
105 buf,
sizeof(buf),
"RGBAf=[%f,%f,%f,%f]",
c.R,
c.G,
c.B,
c.A);
113 o <<
c.R <<
c.G <<
c.B <<
c.A;
119 i >>
c.R >>
c.G >>
c.B >>
c.A;
TColor operator+(const TColor &first, const TColor &second)
Pairwise addition of their corresponding RGBA members.
TColor & operator-=(const TColor &other)
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
Virtual base class for "archives": classes abstracting I/O streams.
A RGB color - floats in the range [0,1].
TColor operator-(const TColor &first, const TColor &second)
Pairwise substraction of their corresponding RGBA members.
TColor & operator=(const TColor &other)
TColor & operator+=(const TColor &other)
std::ostream & operator<<(std::ostream &o, const TColor &c)
mrpt::serialization::CArchive & operator>>(mrpt::serialization::CArchive &i, TColor &c)
int sprintf(char *buf, size_t bufSize, const char *format,...) noexcept MRPT_printf_format_check(3
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compiler...