Minor cleanup.
[lsystem3d.git] / src / coordinate.h
CommitLineData
15c82487 1// Copyright (C) 2006 Erik Dahlberg
2//
d105c6a7 3// This file is part of LSystem3D.
15c82487 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/**
d105c6a7 28 * 3D coordinate
15c82487 29 */
30class Coordinate
31{
32public:
526db675 33
15c82487 34 /**
35 * Constructor
36 */
37 Coordinate();
38
39 /**
40 * Destructor
41 */
42 ~Coordinate();
43
69ebb189 44
526db675 45 /**
46 * Set coordinate
47 * @param x the x-coordinate
48 * @param y the y-coordinate
49 * @param z the z-coordinate
50 */
51 void setXYZ(double x, double y, double z);
52
69ebb189 53
15c82487 54 /**
55 * Get x-coordinate
56 * @return the x-coordinate
57 */
58 double getX();
59
60 /**
61 * Get y-coordinate
62 * @return the y-coordinate
63 */
64 double getY();
65
66 /**
67 * Get z-coordinate
68 * @return the z-coordinate
69 */
70 double getZ();
15c82487 71
72protected:
73
74 double _x, _y, _z;
75};
76
77
78
79#endif