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..7f2b44d 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(Position3D pos = {}, Rotation3D rot = {}) : pos {pos}, rot {rot} { }
+#endif
- glm::mat4 getTransform() const;
+ [[nodiscard]] glm::mat4 getTransform() const;
- glm::vec3 pos;
- glm::vec3 rot;
+ Position3D pos;
+ Rotation3D rot;
};