-
Notifications
You must be signed in to change notification settings - Fork 9
/
Vertex3D.cpp
executable file
·54 lines (46 loc) · 1011 Bytes
/
Vertex3D.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
#include "Vertex3D.h"
/**
* @brief Vertex3D::Vertex3D class constructor
*/
Vertex3D::Vertex3D() {
this->x=0;
this->y=0;
this->z=0;
this->vertexSaliency=0;
this->vtstar=-1;
}
/**
* @brief Vertex3D::Vertex3D class construction
* @param orig
*/
Vertex3D::Vertex3D(const Vertex3D& orig) : Vertex2D(orig) {
this->z=orig.z;
//this->vertexSaliency=orig.saliency();
}
Vertex3D::~Vertex3D() {
}
/**
* @brief Vertex3D::Vertex3D class construction
* @param x x coordinate
* @param y y coordinate
* @param z z coordinate
*/
Vertex3D::Vertex3D(double x, double y, double z){
this->x = x;
this->y = y;
this->z = z;
this->vtstar = -1;
this->vertexSaliency=0;
}
void Vertex3D::setZ(double z){
this->z = z;
}
double Vertex3D::getZ(){
return this->z;
}
bool operator== (const Vertex3D &p, const Vertex3D &q) {
return ((p.x == q.x) && (p.y == q.y) && (p.z == q.z));
}
bool operator !=(const Vertex3D& p, const Vertex3D& q) {
return !(p == q);
}