X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcoordinate.cpp;h=6bc9a5e1eb92aa68da96825a5547d748a7e45318;hb=a4205fb0191cc9a6a9090e0f6276248724e4f940;hp=026addb05df119112436674d20a18cafab1087a5;hpb=15c82487a77555b040f3f4e03bc11da8b9bc5905;p=lsystem3d.git diff --git a/src/coordinate.cpp b/src/coordinate.cpp index 026addb..6bc9a5e 100644 --- a/src/coordinate.cpp +++ b/src/coordinate.cpp @@ -1,6 +1,6 @@ // Copyright (C) 2006 Erik Dahlberg // -// This file is part of LSystem3d. +// This file is part of LSystem3D. // // LSystem3D is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -42,6 +42,21 @@ Coordinate::~Coordinate() +/** + * Set coordinate + * @param x the x-coordinate + * @param y the y-coordinate + * @param z the z-coordinate + */ +void Coordinate::setXYZ(double x, double y, double z) +{ + _x = x; + _y = y; + _z = z; +} + + + /** * Get x-coordinate * @return the x-coordinate @@ -72,18 +87,3 @@ double Coordinate::getZ() { return _z; } - - - -/** - * Set coordinate - * @param x the x-coordinate - * @param y the y-coordinate - * @param z the z-coordinate - */ -void Coordinate::setXYZ(double x, double y, double z) -{ - _x = x; - _y = y; - _z = z; -}