2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +00:00

Work on character animation

This commit is contained in:
Jack Andersen
2016-08-21 10:39:18 -10:00
parent d125b4769e
commit 670eb998d4
35 changed files with 460 additions and 102 deletions

View File

@@ -1,5 +1,7 @@
#include "CCharAnimTime.hpp"
#include <algorithm>
#include <cmath>
#include <float.h>
namespace urde
{
@@ -19,6 +21,11 @@ bool CCharAnimTime::EqualsZero() const
return (m_time == 0.f);
}
bool CCharAnimTime::EpsilonZero() const
{
return (std::fabs(m_time) < FLT_EPSILON);
}
bool CCharAnimTime::GreaterThanZero() const
{
if (EqualsZero())