*** empty log message ***
[lsystem3d.git] / 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 /**
35 * Constructor
36 */
37 Coordinate();
38
39 /**
40 * Destructor
41 */
42 ~Coordinate();
43
44 /**
45 * Set coordinate
46 * @param x the x-coordinate
47 * @param y the y-coordinate
48 * @param z the z-coordinate
49 */
50 void setXYZ(double x, double y, double z);
51
52 /**
53 * Get x-coordinate
54 * @return the x-coordinate
55 */
56 double getX();
57
58 /**
59 * Get y-coordinate
60 * @return the y-coordinate
61 */
62 double getY();
63
64 /**
65 * Get z-coordinate
66 * @return the z-coordinate
67 */
68 double getZ();
69
70 protected:
71
72 double _x, _y, _z;
73 };
74
75
76
77 #endif