mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53840 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
7234af2a2c
commit
f092256c4f
@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user