]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/geometry.h
Store routes in a map by name rather than a set
[r2c2.git] / source / libmarklin / geometry.h
index 9dee86ef949b7d4de481e46ddf8faacf118920c4..e9b9e27266f10d74fb72b87eebd4b327172f97fb 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #ifndef LIBMARKLIN_GEOMETRY_H_
 #define LIBMARKLIN_GEOMETRY_H_
 
@@ -7,9 +14,10 @@ namespace Marklin {
 
 struct Point
 {
-       float x,y,z;
+       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_) { }
 };