FLImaging 6.6.27.1
TPoint3.h
1#pragma once
2
10
11#include <stdint.h>
12#include <type_traits>
13#include <typeinfo>
14
15#include "FLLibTags.h"
16
18namespace FLImaging
19{
21 namespace Base
22 {
34 #pragma pack(push, 1)
35 template <typename T>
36 class FL_EXPORT TPoint3
37 {
38 public:
39 T x;
40 T y;
41 T z;
42
43
44 TPoint3()
45 {
46 }
47
48 TPoint3(T tX, T tY, T tZ) : x(tX), y(tY), z(tZ)
49 {
50 }
51
52 TPoint3(const TPoint3<T>& tp) : x(tp.x), y(tp.y), z(tp.z)
53 {
54 }
55
56 void Set(const TPoint3<T>& tp)
57 {
58 x = tp.x;
59 y = tp.y;
60 z = tp.z;
61 }
62
63 void Set(T tX, T tY, T tZ)
64 {
65 x = tX;
66 y = tY;
67 z = tZ;
68 }
69 };
70 #pragma pack(pop)
71
72 typedef TPoint3<int8_t> TPoint3C;
73 typedef TPoint3<uint8_t> TPoint3UC;
74 typedef TPoint3<int16_t> TPoint3S;
75 typedef TPoint3<uint16_t> TPoint3US;
76 typedef TPoint3<int32_t> TPoint3L;
77 typedef TPoint3<uint32_t> TPoint3UL;
78 typedef TPoint3<int64_t> TPoint3LL;
79 typedef TPoint3<uint64_t> TPoint3ULL;
80 typedef TPoint3<float> TPoint3F;
81 typedef TPoint3<double> TPoint3D;
82 }
83}
3차원 점을 표현하는 간략화된 클래스
Definition TPoint3.h:37
Definition AESCryptography.h:18