class ScriptVec
{
public:
ScriptVec() : m_fFrame(0.0f), m_vVec(0.0f, 0.0f, 0.0f) {}
ScriptVec(const float& fFrame, const Vector3& vVec) : m_fFrame(fFrame), m_vVec(vVec) {}
const float& getFrame() { return m_fFrame; }
const Vector3& getVec() { return m_vVec; }
bool operator ==(const ScriptVec& vVec);
bool operator <(const ScriptVec& vVec);
private:
float m_fFrame;
Vector3 m_vVec;
};
bool ScriptVec::operator ==(const ScriptVec& vVec)
{
return (m_vVec == vVec.m_vVec);
}
bool ScriptVec::operator <(const ScriptVec& vVec)
{
return (m_fFrame < vVec.m_fFrame);
}
std::list<ScriptRot> m_vRot;
m_vRot.sort();
'Programming > STL' 카테고리의 다른 글
std::stringstream에 숫자를 고정 자리수로 넣는 방법 (0) | 2011.07.11 |
---|