@@ -0,0 +1,707 @@
+/**%0A * Created by hajarboulhdir on 02/10/2016.%0A */%0Apublic class Point2D %7B%0A    private double x;%0A    private double y;%0A%0A    public Point2D() %7B%0A        this(0.0,0.0);%0A    %7D%0A    public Point2D(double x, double y) %7B%0A        this.x = x;%0A        this.y = y;%0A    %7D%0A    public void translate(final double dx, final double dy)%7B%0A        x +=dx;%0A        y +=dy;%0A    %7D%0A    public boolean isOrigin()%7B%0A        return (x==0 && y==0);%0A    %7D%0A    public double distance(final Point2D other)%7B%0A        double dx = other.x -this.x;%0A        double dy = other.y -this.y;%0A        return Math.sqrt(dx * dx + dy * dy );%0A    %7D%0A%0A%0A    public double getX() %7B%0A        return x;%0A    %7D%0A%0A    public double getY() %7B%0A        return y;%0A    %7D%0A%7D%0A

Add Point2D class