0.4.3
PointUV.h
浏览该文件的文档.
1//
2// Created by LHR on 2023/10/21.
3//
4
5#ifndef ALSON_CLASSIC_BASE_ENTITY_POINT_UV_H
6#define ALSON_CLASSIC_BASE_ENTITY_POINT_UV_H
7
8
9// std
10#include <cmath>
11
12
13namespace ALSON {
14
15
25class PointUV {
26public:
28 : PointUV(std::nanf(""), std::nanf("")) {}
29 PointUV(float _u, float _v)
30 : u(_u), v(_v) {}
31 ~PointUV() = default;
32
33 PointUV(const PointUV&) = default;
34 PointUV& operator=(const PointUV&) = default;
35 PointUV(PointUV&&) = default;
36 PointUV& operator=(PointUV&&) = default;
37
38public:
53 bool isNan() const { return std::isnan(u) || std::isnan(v); };
54
55public:
65 float u;
75 float v;
76}; // class PointUV
77
78
79} // namespace ALSON
80
81
82#endif // !ALSON_CLASSIC_BASE_ENTITY_POINT_UV_H
PointUV & operator=(const PointUV &)=default
PointUV(float _u, float _v)
PointUV(const PointUV &)=default
PointUV & operator=(PointUV &&)=default
~PointUV()=default
PointUV(PointUV &&)=default
bool isNan() const
My Custom Doxygen Footer
Data Processing Programmer's Guide 0.4.3
Copyright © 2014-2024 Henan Alson Intelligent Technology Co, Ltd 河南埃尔森智能科技有限公司 版权所有 豫ICP备15002212号