0.4.3
PointXYZI.h
浏览该文件的文档.
1//
2// Created by ALSON08 on 2023/10/9.
3//
4
5#ifndef ALSON_CLASSIC_BASE_ENTITY_POINT_XYZI_H
6#define ALSON_CLASSIC_BASE_ENTITY_POINT_XYZI_H
7
8
9// std
10#include <cmath>
11#include <cstdint>
12
13
14namespace ALSON {
15
25class PointXYZI {
26public:
28 : PointXYZI(std::nanf(""), std::nanf(""), std::nanf(""), 0) {}
29 PointXYZI(float _x, float _y, float _z, uint8_t _i)
30 : x(_x), y(_y), z(_z), i(_i) {}
31 ~PointXYZI() = default;
32
33 PointXYZI(const PointXYZI&) = default;
34 PointXYZI& operator=(const PointXYZI&) = default;
35 PointXYZI(PointXYZI&&) = default;
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 uint8_t i;
60
61 const static int X_POS = 0;
62 const static int Y_POS = 4;
63 const static int Z_POS = 8;
64 const static int I_POS = 12;
65}; // class PointXYZI
66
67} // namespace ALSON
68
69
70#endif // !ALSON_CLASSIC_BASE_ENTITY_POINT_XYZI_H
PointXYZI(PointXYZI &&)=default
static const int Y_POS
static const int I_POS
PointXYZI & operator=(const PointXYZI &)=default
PointXYZI & operator=(PointXYZI &&)=default
PointXYZI(float _x, float _y, float _z, uint8_t _i)
static const int X_POS
bool isNan() const
PointXYZI(const PointXYZI &)=default
~PointXYZI()=default
static const int Z_POS
My Custom Doxygen Footer
Data Processing Programmer's Guide 0.4.3
Copyright © 2014-2024 Henan Alson Intelligent Technology Co, Ltd 河南埃尔森智能科技有限公司 版权所有 豫ICP备15002212号