//比较计算后bounds和每个bounds的相交
private bool computeIntersectWithAll(Rectangle2D bounds)
{
var boundsCollection = (Layer as ElementsLayer).BoundsCollection.Values;
foreach (Rectangle2D rect in boundsCollection)
{
if (rect != null)
{
if (bounds.IntersectsWith(rect))
{
return true;
}
}
}
foreach (Rectangle2D rect in orignalBounds)
{
if (rect != null)
{
if (bounds.IntersectsWith(rect))
{
return true;
}
}
}
return false;
}