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