X-Git-Url: https://git.piment-noir.org/?p=lsystem3d.git;a=blobdiff_plain;f=src%2Fcoordinate.cpp;h=ffef1c7e0a4b0b37da4bac378d8c5a5d6aac14bd;hp=026addb05df119112436674d20a18cafab1087a5;hb=526db67540bf69a4c09ed0d0f4d62bad0a37ee70;hpb=3025996ba17bf59f5bc64def5d55b95c4d732a8a diff --git a/src/coordinate.cpp b/src/coordinate.cpp index 026addb..ffef1c7 100644 --- a/src/coordinate.cpp +++ b/src/coordinate.cpp @@ -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; -}