-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreesegment.cpp
More file actions
57 lines (45 loc) · 787 Bytes
/
Copy pathtreesegment.cpp
File metadata and controls
57 lines (45 loc) · 787 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
55
56
57
#include "treesegment.h"
TreeSegment::TreeSegment(Vec3i<float> begin, Vec3i<float> end, double w1, bool is_parent) :
_begin(begin), _end(end), _w1(w1), _w2(0), _is_parent(is_parent)
{
}
Vec3i<float> TreeSegment::begin() const
{
return _begin;
}
Vec3i<float> TreeSegment::end() const
{
return _end;
}
void TreeSegment::set_begin(Vec3i<float> b)
{
_begin = b;
}
void TreeSegment::set_end(Vec3i<float> e)
{
_end = e;
}
void TreeSegment::set_w1(double w)
{
_w1 = w;
}
void TreeSegment::set_w2(double w)
{
_w2 = w;
}
bool TreeSegment::is_parent() const
{
return _is_parent;
}
double TreeSegment::w1() const
{
return _w1;
}
double TreeSegment::w2() const
{
return _w2;
}
Vec3i<float> TreeSegment::delta() const
{
return _end - _begin;
}