13 #ifdef LIBCARLA_INCLUDED_FROM_UE4 15 #include "Math/Color.h" 17 #endif // LIBCARLA_INCLUDED_FROM_UE4 32 Color(uint8_t r, uint8_t g, uint8_t b)
37 #ifdef LIBCARLA_INCLUDED_FROM_UE4 39 Color(
const FColor &color)
40 :
Color(color.R, color.G, color.B) {}
42 Color(
const FLinearColor &color)
43 :
Color(color.R * 255.0f, color.G * 255.0f, color.B * 255.0f) {}
45 operator FColor()
const {
46 return FColor{
r,
g, b};
49 operator FLinearColor()
const {
51 static_cast<float>(
r)/255.0f,
52 static_cast<float>(g)/255.0f,
53 static_cast<float>(
b)/255.0f,
58 #endif // LIBCARLA_INCLUDED_FROM_UE4
This file contains definitions of common data structures used in traffic manager. ...
Color(uint8_t r, uint8_t g, uint8_t b)
MSGPACK_DEFINE_ARRAY(r, g, b)
Color & operator=(const Color &)=default