]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/endpoint.h
Attempt to estimate the exact positions of trains from measured speed data
[r2c2.git] / source / libmarklin / endpoint.h
index 34acdcd6f28a1da4149f352c95d6af18a1285bb1..9eade4d5edd4bcc0c65e528a384a28536e4e65ee 100644 (file)
@@ -8,16 +8,18 @@ Distributed under the GPL
 #ifndef MARKLIN_ENDPOINT_H_
 #define MARKLIN_ENDPOINT_H_
 
+#include "geometry.h"
+
 namespace Marklin {
 
 struct Endpoint
 {
-       float  x, y;
-       float  dir;  // Direction outwards from the endpoint
+       Point pos;
+       float dir;  // Direction outwards from the endpoint
        unsigned routes;
 
-       Endpoint(): x(0), y(0), dir(0), routes(0) { }
-       Endpoint(float x_, float y_, float d, unsigned r): x(x_), y(y_), dir(d), routes(r) { }
+       Endpoint(): dir(0), routes(0) { }
+       Endpoint(float x, float y, float d, unsigned r): pos(x, y), dir(d), routes(r) { }
 };
 
 } // namespace Marklin