import java.util.ArrayList; public class Point2D { public double x; public double y; public Point2D(double _x, double _y){ x = _x; y = _y; } public void set(double _x, double _y){ x = _x; y = _y; } public double[] get(){ return new double[]{x, y}; } public int intX(){return (int)Math.round(x);} public int intY(){return (int)Math.round(y);} }