summaryrefslogtreecommitdiff
path: root/lib/location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/location.cpp')
-rw-r--r--lib/location.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/location.cpp b/lib/location.cpp
new file mode 100644
index 0000000..bff27a2
--- /dev/null
+++ b/lib/location.cpp
@@ -0,0 +1,9 @@
+#include "location.hpp"
+#include "maths.h"
+#include <glm/gtx/transform.hpp>
+
+glm::mat4
+Location::getTransform() const
+{
+ return glm::translate(pos) * rotate_ypr(rot);
+}