📄 location_analyze.java
字号:
class location_analyze{
static void analyze(int location[]){
int xs=0,ys=0,xe=0,ye=0;
if(location[0]<location[2]&&location[1]<location[3]){
xs=location[0];
ys=location[1];
xe=location[2];
ye=location[3];
}
if(location[0]>location[2]&&location[1]<location[3]){
xs=location[2];
ys=location[1];
xe=location[0];
ye=location[3];
}
if(location[0]>location[2]&&location[1]>location[3]){
xs=location[2];
ys=location[3];
xe=location[0];
ye=location[1];
}
if(location[0]<location[2]&&location[1]>location[3]){
xs=location[0];
ys=location[3];
xe=location[2];
ye=location[1];
}
location[0]=xs;
location[1]=ys;
location[2]=xe-xs;
location[3]=ye-ys;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -