git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53840 954022d7-b5bf-4e40-9824-e11837661b57

This commit is contained in:
Oleg.Korshul
2014-01-22 15:16:32 +00:00
committed by Alexander Trofimov
parent 7234af2a2c
commit f092256c4f
4 changed files with 35 additions and 0 deletions

View File

@ -203,4 +203,16 @@ namespace Aggplus
dst[i].Y = (float)y;
}
}
bool CMatrix::IsIdentity() const
{
return m_agg_mtx.is_identity();
}
bool CMatrix::IsIdentity2() const
{
return agg::is_equal_eps(m_agg_mtx.sx, 1.0, agg::affine_epsilon) &&
agg::is_equal_eps(m_agg_mtx.shy, 0.0, agg::affine_epsilon) &&
agg::is_equal_eps(m_agg_mtx.shx, 0.0, agg::affine_epsilon) &&
agg::is_equal_eps(m_agg_mtx.sy, 1.0, agg::affine_epsilon);
}
}