forked from floft/sprouts
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathedge.h
37 lines (28 loc) · 775 Bytes
/
edge.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
#include "node.h"
#ifndef EDGE_H
#define EDGE_H
#include <vector> //needed for list of cubic splines
#include <memory> //used for shared_ptr and weak_ptr
#include <cassert>
/**************
*Description:
*Input:
*Output:
**************/
using namespace std;
#include "cubicspline.h"
struct Region;
struct Edge
{
vector<CubicSpline> cubicSplines; //list of cubic splines
shared_ptr<Region> inside, outside;
shared_ptr<Node> start, end;
Edge(const vector<CubicSpline> & cubicSplines, shared_ptr<Node> start, shared_ptr<Node> end); // in game_state.cpp
};
inline Edge transform(const Matrix &tform, Edge edge)
{
edge.cubicSplines = transform(tform, std::move(edge.cubicSplines));
return std::move(edge);
}
#include "region.h"
#endif // EDGE_H