Exemple #1
0
bool CTextDimsKey::operator==(const CTextDimsKey& textDimsKey) const
{
    return m_str == textDimsKey.m_str
           && m_style->charSet == textDimsKey.m_style->charSet
           && m_style->fontName == textDimsKey.m_style->fontName
           && IsNearlyEqual(m_style->fontSize, textDimsKey.m_style->fontSize, 1e-6)
           && IsNearlyEqual(m_style->fontSpacing, textDimsKey.m_style->fontSpacing, 1e-6)
           && m_style->fontWeight == textDimsKey.m_style->fontWeight
           && m_style->fItalic == textDimsKey.m_style->fItalic
           && m_style->fUnderline == textDimsKey.m_style->fUnderline
           && m_style->fStrikeOut == textDimsKey.m_style->fStrikeOut;
}
Exemple #2
0
bool COverlayKey::operator==(const COverlayKey& overlayKey) const
{
    return __super::operator==(overlayKey)
           && m_subp == overlayKey.m_subp
           && m_style->fBlur == overlayKey.m_style->fBlur
           && IsNearlyEqual(m_style->fGaussianBlur, overlayKey.m_style->fGaussianBlur, 1e-6);
}
Exemple #3
0
bool CPolygonPathKey::operator==(const CPolygonPathKey& polygonPathKey) const
{
    return m_str == polygonPathKey.m_str
           && IsNearlyEqual(m_scalex, polygonPathKey.m_scalex, 1e-6)
           && IsNearlyEqual(m_scaley, polygonPathKey.m_scaley, 1e-6);
}
Exemple #4
0
bool COutlineKey::operator==(const COutlineKey& outLineKey) const
{
    return __super::operator==(outLineKey) // CreatePath
           && IsNearlyEqual(m_scalex, outLineKey.m_scalex, 1e-6)
           && IsNearlyEqual(m_scaley, outLineKey.m_scaley, 1e-6)
           // Transform
           && IsNearlyEqual(m_style->fontScaleX, outLineKey.m_style->fontScaleX, 1e-6)
           && IsNearlyEqual(m_style->fontScaleY, outLineKey.m_style->fontScaleY, 1e-6)
           && IsNearlyEqual(m_style->fontAngleX, outLineKey.m_style->fontAngleX, 1e-6)
           && IsNearlyEqual(m_style->fontAngleY, outLineKey.m_style->fontAngleY, 1e-6)
           && IsNearlyEqual(m_style->fontAngleZ, outLineKey.m_style->fontAngleZ, 1e-6)
           && IsNearlyEqual(m_style->fontShiftX, outLineKey.m_style->fontShiftX, 1e-6)
           && IsNearlyEqual(m_style->fontShiftY, outLineKey.m_style->fontShiftY, 1e-6)
           && m_org == outLineKey.m_org
           // CreateWidenedRegion
           && m_style->borderStyle == outLineKey.m_style->borderStyle
           && IsNearlyEqual(m_style->outlineWidthX, outLineKey.m_style->outlineWidthX, 1e-6)
           && IsNearlyEqual(m_style->outlineWidthY, outLineKey.m_style->outlineWidthY, 1e-6);
}
Exemple #5
0
bool operator==(const Vector3& lhs, const Vector3& rhs)
{
	return IsNearlyEqual(lhs.x, rhs.x)
		&& IsNearlyEqual(lhs.y, rhs.y)
		&& IsNearlyEqual(lhs.z, rhs.z);
}