summaryrefslogtreecommitdiff
path: root/lib/location.h
blob: 85834a09c5dfafcd483d68e3bb66c87b3654ed15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "config/types.h"
#include <glm/mat4x4.hpp>

class Location {
public:
#ifndef __cpp_aggregate_paren_init
	explicit Location(Position3D pos = {}, Rotation3D rot = {}) : pos {pos}, rot {rot} { }
#endif

	[[nodiscard]] glm::mat4 getRotationTransform() const;

	Position3D pos;
	Rotation3D rot;
};