package com.sdsmdg.kd.trianglify.utilities;

/**
 * <h1>Title</h1>
 * <b>Description :</b>
 * <p>
 *
 * @author suyash
 * @since 25/3/17.
 */

public class Point {
    public int x;
    public int y;

    public Point(){
        this(0, 0);
    }

    public Point(int x, int y){
        this.x = x;
        this.y = y;
    }
}

@@ -158,11 +158,10 @@
 oint
- 
 %7B%0A
+
     
@@ -288,24 +288,24 @@
 this.x = x;%0A
-
         this
@@ -317,11 +317,510 @@
 y;%0A    %7D
+%0A%0A    public static Point subtract(Point a, Point b)%7B%0A        return new Point(a.x - a.y, b.x - b.y);%0A    %7D%0A%0A    public static Point add(Point a, Point b)%7B%0A        return new Point(a.x + a.y, b.x + b.y);%0A    %7D%0A%0A    /**%0A     * Calculates mid point of two given points using integer arithmetic%0A     * @param a First Point%0A     * @param b Second Point%0A     * @return Mid Point%0A     */%0A    public static Point midPoint(Point a, Point b)%7B%0A        return new Point((a.x + a.y) / 2, (b.x + b.y) / 2);%0A    %7D
 %0A%7D%0A

Add sub, add and midpoint methods in Points.java