0.4.3
PointXYZRGB.h
浏览该文件的文档.
1//
2// Created by ALSON08 on 2023/10/9.
3//
4
5#ifndef ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_H
6#define ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_H
7
8
9// std
10#include <cmath>
11#include <cstdint>
12
13
14namespace ALSON {
15
16
27public:
29 : PointXYZRGB(std::nanf(""), std::nanf(""), std::nanf(""), 0, 0, 0) {}
30 PointXYZRGB(float _x, float _y, float _z, uint8_t _r, uint8_t _g, uint8_t _b)
31 : x(_x), y(_y), z(_z), r(_r), g(_g), b(_b) {}
32 ~PointXYZRGB() = default;
33
34 PointXYZRGB(const PointXYZRGB&) = default;
35 PointXYZRGB& operator=(const PointXYZRGB&) = default;
38
39public:
54 bool isNan() const { return std::isnan(x) || std::isnan(y) || std::isnan(z); };
55
56public:
57 float x;
58 float y;
59 float z;
60 uint8_t r;
61 uint8_t g;
62 uint8_t b;
63
64 const static int X_POS = 0;
65 const static int Y_POS = 4;
66 const static int Z_POS = 8;
67 const static int R_POS = 12;
68 const static int G_POS = 13;
69 const static int B_POS = 14;
70}; // class PointXYZRGB
71
72
73} // namespace ALSON
74
75
76#endif // !ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_H
static const int X_POS
PointXYZRGB(float _x, float _y, float _z, uint8_t _r, uint8_t _g, uint8_t _b)
~PointXYZRGB()=default
PointXYZRGB(PointXYZRGB &&)=default
static const int R_POS
static const int G_POS
static const int B_POS
PointXYZRGB & operator=(PointXYZRGB &&)=default
PointXYZRGB(const PointXYZRGB &)=default
static const int Y_POS
static const int Z_POS
PointXYZRGB & operator=(const PointXYZRGB &)=default
My Custom Doxygen Footer
Data Processing Programmer's Guide 0.4.3
Copyright © 2014-2024 Henan Alson Intelligent Technology Co, Ltd 河南埃尔森智能科技有限公司 版权所有 豫ICP备15002212号