12 const glm::vec3 _vec3;
13 const float _rotation;
15 MoveVector(
const glm::vec3& vec3,
float rotation) :
16 _vec3(vec3), _rotation(rotation) {
19 MoveVector(
const glm::vec3& vec3,
double rotation) :
20 _vec3(vec3), _rotation(static_cast<float>(rotation)) {
23 inline float getOrientation(
float duration)
const {
24 const float pi2 = glm::two_pi<float>();
25 const float rotation = _rotation + pi2;
26 return fmodf(rotation * duration, pi2);
29 inline const glm::vec3& getVector()
const {
33 inline glm::vec3 getVector() {
37 inline float getRotation()
const {
41 inline operator glm::vec3()
const {
45 inline operator const glm::vec3&()
const {
49 inline operator float()
const {
Definition: MoveVector.h:10