public BoundingRectangle GetBoundingBox(ref BoundingRectangle rect) { rect = rectBoundingBox; rect.x1 *= fScale; rect.y1 *= fScale; rect.x2 *= fScale; rect.y2 *= fScale; return rect; }
public bool Intersect(BoundingRectangle rect) { if(Math.Abs(x1 + x2 - rect.x1 - rect.x2) < (x2 - x1 + rect.x2 - rect.x1)) if (Math.Abs(y1 + y2 - rect.y1 - rect.y2) < (y2 - y1 + rect.y2 - rect.y1)) return true; return false; }