This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
csce441pine64backup/A5/src/Keyframe.cpp

36 lines
444 B
C++

#include "Keyframe.h"
using namespace std;
Keyframe::Keyframe()
{
p = glm::vec3(0.0f, 0.0f, 0.0f);
glm::quat temp(0.0f, 0.0f, 0.0f, 0.0f);
q = temp;
}
Keyframe::Keyframe(const Keyframe& k)
{
p = k.p;
q = k.q;
}
glm::vec3 Keyframe::getPos()
{
return this->p;
}
void Keyframe::setPos(glm::vec3 np)
{
this->p = np;
}
glm::quat Keyframe::getQuat()
{
return this->q;
}
void Keyframe::setQuat(glm::quat nq)
{
this->q = nq;
}