-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathOutputFormatTypes.cpp
executable file
·83 lines (66 loc) · 1.38 KB
/
OutputFormatTypes.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#include "OutputFormatTypes.h"
// Point:
OutputFeaturePoint::OutputFeaturePoint() {
this->X = -1;
this->Y = -1;
this->Z = -1;
}
OutputFeaturePoint::OutputFeaturePoint(double x, double y, double z) {
this->X = x;
this->Y = y;
this->Z = z;
}
void OutputFeaturePoint::set(double x, double y, double z) {
this->X = x;
this->Y = y;
this->Z = z;
}
double OutputFeaturePoint::get_X() {
return this->X;
}
double OutputFeaturePoint::get_Y() {
return this->Y;
}
double OutputFeaturePoint::get_Z() {
return this->Z;
}
// Line:
OutputFeatureLine::OutputFeatureLine() {
this->X1 = this->X2 = -1;
this->Y1 = this->Y2 = -1;
this->Z1 = this->Z2 = -1;
}
OutputFeatureLine::OutputFeatureLine(double x1, double y1, double z1, double x2, double y2, double z2) {
this->X1 = x1;
this->Y1 = y1;
this->Z1 = z1;
this->X2 = x2;
this->Y2 = y2;
this->Z2 = z2;
}
void OutputFeatureLine::set(double x1, double y1, double z1, double x2, double y2, double z2) {
this->X1 = x1;
this->Y1 = y1;
this->Z1 = z1;
this->X2 = x2;
this->Y2 = y2;
this->Z2 = z2;
}
double OutputFeatureLine::get_X1() {
return this->X1;
}
double OutputFeatureLine::get_Y1() {
return this->Y1;
}
double OutputFeatureLine::get_Z1() {
return this->Z1;
}
double OutputFeatureLine::get_X2() {
return this->X2;
}
double OutputFeatureLine::get_Y2() {
return this->Y2;
}
double OutputFeatureLine::get_Z2() {
return this->Z2;
}