X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fgeometry.h;h=fab5cea2bd9e8bdc7d33783d258795c623ceeb43;hb=d27edb207810f0b4e44be8c3632d421faa5fed80;hp=9dee86ef949b7d4de481e46ddf8faacf118920c4;hpb=6c61179fe09af2f5366d50f10aadbf5f83438087;p=r2c2.git diff --git a/source/libmarklin/geometry.h b/source/libmarklin/geometry.h index 9dee86e..fab5cea 100644 --- a/source/libmarklin/geometry.h +++ b/source/libmarklin/geometry.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #ifndef LIBMARKLIN_GEOMETRY_H_ #define LIBMARKLIN_GEOMETRY_H_ @@ -7,12 +14,22 @@ 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_) { } }; +struct TrackPoint +{ + Point pos; + float dir; + float grade; + + TrackPoint(): dir(0), grade(0) { } +}; + } // namespace Marklin #endif