0.4.3
PointXYZINormal.h
浏览该文件的文档.
1//
2// Created by ALSON08 on 2023/12/20.
3//
4
5#ifndef ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_I_NORMAL_H
6#define ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_I_NORMAL_H
7
8
9// std
10#include <cmath>
11#include <cstdint>
12
13
14namespace ALSON {
15
26public:
28 : PointXYZINormal(std::nanf(""), std::nanf(""), std::nanf(""), 0, std::nanf(""), std::nanf(""), std::nanf("")) {}
29 PointXYZINormal(float _x, float _y, float _z, uint8_t _i, float _nx, float _ny, float _nz)
30 : x(_x), y(_y), z(_z), i(_i), nx(_nx), ny(_ny), nz(_nz) {}
31 ~PointXYZINormal() = default;
32
37
38public:
53 bool isNan() const { return std::isnan(x) || std::isnan(y) || std::isnan(z); };
54
55public:
56 float x;
57 float y;
58 float z;
59 float nx;
60 float ny;
61 float nz;
62 uint8_t i;
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 NX_POS = 12;
68 const static int NY_POS = 16;
69 const static int NZ_POS = 20;
70 const static int I_POS = 24;
71}; // class PointXYZINormal
72
73
74} // namespace ALSON
75
76
77#endif // !ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_I_NORMAL_H
PointXYZINormal & operator=(PointXYZINormal &&)=default
PointXYZINormal(const PointXYZINormal &)=default
PointXYZINormal(PointXYZINormal &&)=default
PointXYZINormal & operator=(const PointXYZINormal &)=default
PointXYZINormal(float _x, float _y, float _z, uint8_t _i, float _nx, float _ny, float _nz)
My Custom Doxygen Footer
Data Processing Programmer's Guide 0.4.3
Copyright © 2014-2024 Henan Alson Intelligent Technology Co, Ltd 河南埃尔森智能科技有限公司 版权所有 豫ICP备15002212号