diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-24 01:09:12 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-24 01:09:12 +0100 |
commit | f96af48ad82f1ddfab1402ca5c6eafd82af2b217 (patch) | |
tree | 0eea4b97d600460f386cb82611ce40d3ccf1bc7d /src/body.cpp | |
parent | 5403490b941f7c031bf1aafdb91b1098f69edbf2 (diff) | |
download | YAGE-f96af48ad82f1ddfab1402ca5c6eafd82af2b217.tar.gz YAGE-f96af48ad82f1ddfab1402ca5c6eafd82af2b217.zip |
Adding rules to clang-format.
Diffstat (limited to 'src/body.cpp')
-rw-r--r-- | src/body.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/body.cpp b/src/body.cpp index 96d01c22..036059a3 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -15,9 +15,15 @@ namespace yage const double Body::GRAVITY = -9.81; -double Body::xPosition() const { return position_[0]; } +double Body::xPosition() const +{ + return position_[0]; +} -double Body::yPosition() const { return position_[1]; } +double Body::yPosition() const +{ + return position_[1]; +} Body::Body(Vector2d position, double mass, Vector2d velocity, bool gravity) : position_(std::move(position)), mass_(mass), |