?? lprect.java
字號:
package lipeng;
public class LPRect
{
public int x;
public int y;
public int dx;
public int dy;
public static boolean IntersectRect(LPRect rect1, LPRect rect2)
{
if ( (rect1.x + rect1.dx > rect2.x) && (rect1.y + rect1.dy > rect2.y)
&&
(rect2.x + rect2.dy > rect1.x) && (rect2.y + rect2.dy > rect1.y))
{
return true;
}
return false;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -