]> git.tdb.fi Git - r2c2.git/blob - source/libmarklin/endpoint.h
Major code refactoring:
[r2c2.git] / source / libmarklin / endpoint.h
1 #ifndef MARKLIN_ENDPOINT_H_
2 #define MARKLIN_ENDPOINT_H_
3
4 namespace Marklin {
5
6 struct Endpoint
7 {
8         float  x, y;
9         float  dir;  // Direction outwards from the endpoint
10         unsigned routes;
11
12         Endpoint(): x(0), y(0), dir(0), routes(0) { }
13         Endpoint(float x_, float y_, float d, unsigned r): x(x_), y(y_), dir(d), routes(r) { }
14 };
15
16 } // namespace Marklin
17
18 #endif