Initial revision
[lsystem3d.git] / lsystem3d / src / coordinate.h
1 // Copyright (C) 2006 Erik Dahlberg
2 //
3 // This file is part of LSystem3d.
4 //
5 // LSystem3D is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // LSystem3D is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with LSystem3D; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19
20
21
22 #ifndef COORDINATE_H
23 #define COORDINATE_H
24
25
26
27 /**
28 * 3d coordinate
29 */
30 class Coordinate
31 {
32 public:
33 /**
34 * Constructor
35 */
36 Coordinate();
37
38 /**
39 * Destructor
40 */
41 ~Coordinate();
42
43 /**
44 * Get x-coordinate
45 * @return the x-coordinate
46 */
47 double getX();
48
49 /**
50 * Get y-coordinate
51 * @return the y-coordinate
52 */
53 double getY();
54
55 /**
56 * Get z-coordinate
57 * @return the z-coordinate
58 */
59 double getZ();
60
61 /**
62 * Set coordinate
63 * @param x the x-coordinate
64 * @param y the y-coordinate
65 * @param z the z-coordinate
66 */
67 void setXYZ(double x, double y, double z);
68
69 protected:
70
71 double _x, _y, _z;
72 };
73
74
75
76 #endif