diff options
Diffstat (limited to 'lib/location.cpp')
| -rw-r--r-- | lib/location.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/location.cpp b/lib/location.cpp index 13acfde..2138f0a 100644 --- a/lib/location.cpp +++ b/lib/location.cpp @@ -2,6 +2,14 @@ #include "maths.h" #include <glm/gtx/transform.hpp> +Location +Location::operator+(RelativePosition3D offset) const +{ + Location ret {*this}; + ret.pos += offset; + return ret; +} + glm::mat3 Location::getRotationTransform() const { |
