0.4.3
PointXYZRGBNormal.h
浏览该文件的文档.
1//
2// Created by ALSON08 on 2023/12/20.
3//
4
5#ifndef ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_NORMAL_H
6#define ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_NORMAL_H
7
8
9// std
10#include <cmath>
11#include <cstdint>
12
13
14namespace ALSON {
15
16
27public:
29 : PointXYZRGBNormal(std::nanf(""), std::nanf(""), std::nanf(""), 0, 0, 0, std::nanf(""), std::nanf(""), std::nanf("")) {}
30 PointXYZRGBNormal(float _x, float _y, float _z, uint8_t _r, uint8_t _g, uint8_t _b, float _nx, float _ny, float _nz)
31 : x(_x), y(_y), z(_z), r(_r), g(_g), b(_b), nx(_nx), ny(_ny), nz(_nz) {}
32 ~PointXYZRGBNormal() = default;
33
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 float nx;
61 float ny;
62 float nz;
63 uint8_t r;
64 uint8_t g;
65 uint8_t b;
66
67 const static int X_POS = 0;
68 const static int Y_POS = 4;
69 const static int Z_POS = 8;
70 const static int NX_POS = 12;
71 const static int NY_POS = 16;
72 const static int NZ_POS = 20;
73 const static int R_POS = 24;
74 const static int G_POS = 25;
75 const static int B_POS = 26;
76}; // class PointXYZRGBNormal
77
78
79} // namespace ALSON
80
81
82#endif // !ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_NORMAL_H
83
PointXYZRGBNormal & operator=(PointXYZRGBNormal &&)=default
PointXYZRGBNormal & operator=(const PointXYZRGBNormal &)=default
PointXYZRGBNormal(const PointXYZRGBNormal &)=default
PointXYZRGBNormal(float _x, float _y, float _z, uint8_t _r, uint8_t _g, uint8_t _b, float _nx, float _ny, float _nz)
PointXYZRGBNormal(PointXYZRGBNormal &&)=default
My Custom Doxygen Footer
Data Processing Programmer's Guide 0.4.3
Copyright © 2014-2024 Henan Alson Intelligent Technology Co, Ltd 河南埃尔森智能科技有限公司 版权所有 豫ICP备15002212号