-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverticle.cpp
More file actions
54 lines (42 loc) · 709 Bytes
/
Copy pathverticle.cpp
File metadata and controls
54 lines (42 loc) · 709 Bytes
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 "verticle.h"
Verticle::Verticle(const Point3D &point) : _point(point)
{
}
Verticle::Verticle(double x, double y, double z) : _point(x, y, z)
{
}
Verticle::Verticle(const Verticle &other) : _point(other.point())
{
}
double Verticle::get_x() const
{
return _point.get_x();
}
double Verticle::get_y() const
{
return _point.get_y();
}
double Verticle::get_z() const
{
return _point.get_z();
}
Point3D Verticle::point() const
{
return _point;
}
void Verticle::set_x(double x)
{
_point.set_x(x);
}
void Verticle::set_y(double y)
{
_point.set_y(y);
}
void Verticle::set_z(double z)
{
_point.set_z(z);
}
void Verticle::set_point(Point3D point)
{
_point = point;
}