?? point2d.java
字號:
package tree.point2d;
public class Point2D
{
public int x,y;
public Point2D ( )
{
x=0;
y=0;
}
public Point2D ( int xx, int yy )
{
x=xx;
y=yy;
}
public void offset(int a, int b)
{
x=x+a;
y=y+b;
}
public double dis ( Point2D p )
{
double d;
d = (x-p.x)*(x-p.x)+(y-p.y)*(y-p.y);
d = Math.sqrt(d);
return d;
}
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -