]> git.tdb.fi Git - r2c2.git/blob - source/libmarklin/geometry.h
fab5cea2bd9e8bdc7d33783d258795c623ceeb43
[r2c2.git] / source / libmarklin / geometry.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2010  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef LIBMARKLIN_GEOMETRY_H_
9 #define LIBMARKLIN_GEOMETRY_H_
10
11 #include <vector>
12
13 namespace Marklin {
14
15 struct Point
16 {
17         float x, y, z;
18
19         Point(): x(0), y(0), z(0) { }
20         Point(float x_, float y_): x(x_), y(y_), z(0) { }
21         Point(float x_, float y_, float z_): x(x_), y(y_), z(z_) { }
22 };
23
24 struct TrackPoint
25 {
26         Point pos;
27         float dir;
28         float grade;
29
30         TrackPoint(): dir(0), grade(0) { }
31 };
32
33 } // namespace Marklin
34
35 #endif