-
Notifications
You must be signed in to change notification settings - Fork 0
/
Landmark.cpp
64 lines (61 loc) · 1.27 KB
/
Landmark.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
#include "Landmark.h"
Landmark::Landmark(const Segment3D &firstLine, const Segment3D &lastLine,const Point3D& p,const Point2D& p2d):intersection3D(p),intersection2D(p2d),isOn(false)
{
// lines3D.resize(2);
lines3D[0] = firstLine;
lines3D[1] = lastLine;
}
Landmark::Landmark():intersection3D(Point3D(0,0,0))
{
}
/*
Landmark::Landmark(const Segment2D &firstLine, const Segment2D &lastLine,const Point2D& p)
{
lines2D[0] = firstLine;
lines2D[1] = lastLine;
intersection2D = p;
}*/
const Segment3D& Landmark::getFirstLine3D() const
{
return lines3D[0];
}
const Segment3D& Landmark::getLastLine3D() const
{
return lines3D[1];
}
const ExactSegment2D& Landmark::getFirstLine2D() const
{
return lines2D[0];
}
const ExactSegment2D& Landmark::getLastLine2D() const
{
return lines2D[1];
}
const Point2D& Landmark::getIntersection2D() const
{
return intersection2D;
}
void Landmark::setFirstLine2D(const ExactSegment2D& first)
{
lines2D[0] = first;
}
void Landmark::setLastLine2D(const ExactSegment2D& last)
{
lines2D[1] = last;
}
const Point3D& Landmark::getIntersection3D() const
{
return intersection3D;
}
/*Point2D Landmark::getIntersection2D()
{
return intersection2D;
}*/
void Landmark::setIsOn(bool isOn)
{
this->isOn = isOn;
}
bool Landmark::getIsOn() const
{
return isOn;
}