-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeypoint.cpp
51 lines (39 loc) · 868 Bytes
/
Keypoint.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
#include "Keypoint.hpp"
Keypoint::Keypoint(int id, vpPoint point) {
this->id = id;
this->point = point;
}
Keypoint::Keypoint(int id, double x, double y, double z) {
this->id = id;
this->point.set_oX(x);
this->point.set_oY(y);
this->point.set_oZ(z);
}
Keypoint::~Keypoint() {}
vpPoint Keypoint::getPoint() {
return this->point;
}
double Keypoint::getX() {
return this->point.get_oX();
}
double Keypoint::getY() {
return this->point.get_oY();
}
double Keypoint::getZ() {
return this->point.get_oZ();
}
int Keypoint::getID() {
return this->id;
}
void Keypoint::setPoint(vpPoint point) {
this->point = point;
}
void Keypoint::setX(const double x) {
this->point.set_oX(x);
}
void Keypoint::setY(const double y) {
this->point.set_oY(y);
}
void Keypoint::setZ(const double z) {
this->point.set_oZ(z);
}