java定义一个点类Point, 具备坐标系中的横坐标x, 和纵坐标y, 并实现如下功能:
java定义一个点类Point, 具备坐标系中的横坐标x, 和纵坐标y, 并实现如下功能:
日期:2016-04-29 13:58:35 人气:1
Point类
public class Point{ private float x; private float y; public Point(float x,float y){ this.x = x; this.y = y; } public float getX() { return x; } public void setX(float x) { this.x = x; } public float getY() { return y; } public void setY(floa