43 #include <visp3/core/vpConfig.h>
44 #include <visp3/core/vpColVector.h>
46 #if ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)))
47 #include <type_traits>
71 inline vpRGBf() : R(0), G(0), B(0) { }
82 inline vpRGBf(
float r,
float g,
float b)
93 VP_EXPLICIT
inline vpRGBf(
float v) : R(v), G(v), B(v) { }
110 #if ((__cplusplus >= 201103L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L)))
113 inline vpRGBf(
const vpRGBf &v) : R(v.R), G(v.G), B(v.B) { }
124 vpRGBf &operator=(
float v);
126 #if ((__cplusplus >= 201103L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L)))
139 bool operator==(
const vpRGBf &v)
const;
140 bool operator!=(
const vpRGBf &v)
const;
149 bool operator<(
const vpRGBf &v)
const;
150 bool operator>(
const vpRGBf &v)
const;
152 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpRGBf &rgb);
163 #if ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)))
164 static_assert(std::is_trivially_assignable_v<vpRGBf, vpRGBf>);
165 static_assert(std::is_trivially_copyable_v<vpRGBf>);
Implementation of column vector and the associated operations.
vpRGBf & operator=(const vpRGBf &v)=default
VP_EXPLICIT vpRGBf(const vpColVector &v)
vpRGBf(float r, float g, float b)
vpRGBf & operator=(vpRGBf &&v)=default
VP_EXPLICIT vpRGBf(int v)
vpRGBf(const vpRGBf &v)=default
VP_EXPLICIT vpRGBf(float v)
vpMatrix operator*(const double &x, const vpMatrix &A)