X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcoordinate.cpp;h=ffef1c7e0a4b0b37da4bac378d8c5a5d6aac14bd;hb=bd75813d44d09dec4f62b86ef2ef44f3471a0148;hp=026addb05df119112436674d20a18cafab1087a5;hpb=dd73b028a74ef8b57569c3e76751481d2124e491;p=lsystem3d.git 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; -}