blob: 2138f0a35f5d5f1b95fb8140f4ea1f6818b32a28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "location.h"
#include "maths.h"
#include <glm/gtx/transform.hpp>
Location
Location::operator+(RelativePosition3D offset) const
{
Location ret {*this};
ret.pos += offset;
return ret;
}
glm::mat3
Location::getRotationTransform() const
{
return rotate_ypr(rot);
}
|