?? rect.java
字號:
package com.aztsoft.games.util;
public class Rect {
public int x;
public int y;
public int x2;
public int y2;
public int width;
public int height;
public Rect(int x, int y, int width, int height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
x2 = x + width;
y2 = y + height;
}
public boolean isHit(int x1, int y1) {
return ((x1 > x && x1 < x + width) && (y1 > y && y1 < y + height));
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -