コード例 #1
0
ファイル: Rectangle.cs プロジェクト: 237rxd/maptiledownloader
 /**
  * Determines whether or not this Rectangle and the specified Rectangle
  * location (x, y) with the specified dimensions (width, height),
  * intersect. Two rectangles intersect if their intersection is nonempty.
  *
  * @param rect the Rectangle to check intersection with
  * @return true if the specified Rectangle and this Rectangle intersect;
  * false otherwise.
  */
 public override bool Intersects(Rectangle rect)
 {
     return Intersects(rect.GetX(), rect.GetY(),
             rect.GetSize().GetWidth(), rect.GetSize().GetHeight());
 }