-
Notifications
You must be signed in to change notification settings - Fork 0
/
footway.h
52 lines (41 loc) · 877 Bytes
/
footway.h
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
/*footway.h*/
//
// A footway / path in the Open Street Map.
//
// Mark Fortes
// Northwestern University
// CS 211: Winter 2023
//
#pragma once
#include <vector>
#include "building.h"
using namespace std;
//
// Footway
//
// Stores info about one footway in the map. The ID uniquely identifies
// the footway. The vector defines points (Nodes) along the footway; the
// vector always contains at least two points.
//
//
class Footway
{
public:
long long ID;
vector<long long> NodeIDs;
//
// constructor
//
Footway(long long id);
//
// intersectWithBuilding
//
// Checks to see if this footway intersects with the given building,
// i.e. shares a node in common. Returns true if so, false if not.
//
bool intersectWithBuilding(Building& B);
//
// adds the given nodeid to the end of the vector
//
void add(long long nodeid);
};