summaryrefslogtreecommitdiff
path: root/lib/location.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/location.h')
-rw-r--r--lib/location.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/location.h b/lib/location.h
index 078f5d3..8570fc2 100644
--- a/lib/location.h
+++ b/lib/location.h
@@ -1,14 +1,16 @@
#pragma once
+#include "config/types.h"
#include <glm/mat4x4.hpp>
-#include <glm/vec3.hpp>
class Location {
public:
- explicit Location(glm::vec3 pos = {}, glm::vec3 rot = {}) : pos {pos}, rot {rot} { }
+#ifndef __cpp_aggregate_paren_init
+ explicit Location(GlobalPosition3D pos = {}, Rotation3D rot = {}) : pos {pos}, rot {rot} { }
+#endif
- glm::mat4 getTransform() const;
+ [[nodiscard]] glm::mat4 getRotationTransform() const;
- glm::vec3 pos;
- glm::vec3 rot;
+ GlobalPosition3D pos;
+ Rotation3D rot;
};