Helios++
Helios software for LiDAR simulations
Color4f.h
1 #pragma once
2 
6 class Color4f {
7  friend class boost::serialization::access;
8  template<class Archive>
9  void serialize(Archive &ar, const unsigned int version) {
10  ar & x & y & z & w;
11  }
12 public:
13  // *** ATTRIBUTES *** //
14  // ******************** //
18  float x;
22  float y;
26  float z;
30  float w;
31 
32  // *** CONSTRUCTION / DESTRUCTION *** //
33  // ************************************ //
37  Color4f() = default;
38 
46  Color4f(float x, float y, float z, float w) {
47  this->x = x;
48  this->y = y;
49  this->z = z;
50  this->w = w;
51  }
52 
53 };
Color4f(float x, float y, float z, float w)
Color in 4 float components constructor.
Definition: Color4f.h:46
Class representing a color with 4 float components: RGBA.
Definition: Color4f.h:6
float x
Color red component (R)
Definition: Color4f.h:18
float y
Color green component (G)
Definition: Color4f.h:22
float z
Color blue component (B)
Definition: Color4f.h:26
float w
Color alpha component (A)
Definition: Color4f.h:30
Color4f()=default
Color in 4 float components default constructor.