qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
|
RGB color structure. More...
#include <ccColorTypes.h>
Public Member Functions | |
constexpr | RgbTpl () |
Default constructor. More... | |
constexpr | RgbTpl (Type red, Type green, Type blue) |
Constructor from a triplet of r,g,b values. | |
constexpr | RgbTpl (const Type col[3]) |
Constructor from an array of 3 values. | |
bool | operator!= (const RgbTpl< Type > &t) const |
Comparison operator. | |
Public Attributes | |
union { | |
struct { | |
Type r | |
Type g | |
Type b | |
} | |
Type rgb [3] | |
}; | |
3-tuple as a union | |
RGB color structure.
|
inlineconstexpr |
Default constructor.
Inits color to (0,0,0).