blob: 9a31402cfbdc2be7402fc57af5805e11c7073e94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "location.h"
#include "maths.h"
#include <glm/gtx/transform.hpp>
glm::mat4
Location::getTransform() const
{
return glm::translate(pos) * rotate_ypr(rot);
}
glm::mat4
Location::getRotationTransform() const
{
return rotate_ypr(rot);
}
|