blob: e642b41273d78be313161e0cdb0003a257cd8605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "config/types.h"
#include <glm/mat4x4.hpp>
class Location {
public:
#ifndef __cpp_aggregate_paren_init
explicit Location(GlobalPosition3D pos = {}, Rotation3D rot = {}) : pos {pos}, rot {rot} { }
#endif
[[nodiscard]] glm::mat3 getRotationTransform() const;
Location operator+(RelativePosition3D) const;
GlobalPosition3D pos;
Rotation3D rot;
};
|