13#ifdef LIBCARLA_INCLUDED_FROM_UE4
15#include "Math/Color.h"
40 return (
r == rhs.
r) && (
g == rhs.
g) && (
b == rhs.
b) && (
a == rhs.
a);
44 return !(*
this == rhs);
47#ifdef LIBCARLA_INCLUDED_FROM_UE4
50 :
FloatColor(color.
R / 255.f, color.G / 255.f, color.B / 255.f, color.A / 255.f) {}
57 static_cast<uint8
>(
r * 255),
58 static_cast<uint8
>(
g * 255),
59 static_cast<uint8
>(
b * 255),
60 static_cast<uint8
>(
a * 255)};
63 operator FLinearColor()
const {
64 return FLinearColor{
r,
g,
b,
a };
This file contains definitions of common data structures used in traffic manager.
MSGPACK_DEFINE_ARRAY(r, g, b, a)
FloatColor & operator=(const FloatColor &)=default
bool operator!=(const FloatColor &rhs) const
bool operator==(const FloatColor &rhs) const
FloatColor(const FloatColor &)=default
FloatColor(float r, float g, float b, float a=1.f)
FloatColor(const FColor &color)
FloatColor(const FLinearColor &color)