]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/geometry.h
Add a pathfinder function to Route
[r2c2.git] / source / libmarklin / geometry.h
index 240bd89ac4fdd85dc83f6c92943a1ed333182768..fab5cea2bd9e8bdc7d33783d258795c623ceeb43 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2010  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -17,9 +17,19 @@ struct Point
        float x, y, z;
 
        Point(): x(0), y(0), z(0) { }
+       Point(float x_, float y_): x(x_), y(y_), z(0) { }
        Point(float x_, float y_, float z_): x(x_), y(y_), z(z_) { }
 };
 
+struct TrackPoint
+{
+       Point pos;
+       float dir;
+       float grade;
+
+       TrackPoint(): dir(0), grade(0) { }
+};
+
 } // namespace Marklin
 
 #endif