13#ifdef LIBCARLA_INCLUDED_FROM_UE4
15#include "Math/Color.h"
37#ifdef LIBCARLA_INCLUDED_FROM_UE4
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,
Color(const FColor &color)
Color(const FLinearColor &color)
Color(const Color &)=default
MSGPACK_DEFINE_ARRAY(r, g, b)
Color & operator=(const Color &)=default
Color(uint8_t r, uint8_t g, uint8_t b)
This file contains definitions of common data structures used in traffic manager.