package com.sdsmdg.kd.trianglify.models;


import android.graphics.Point;

public class Triangle {
    public Point a;
    public Point b;
    public Point c;

    public Triangle (Point a, Point b, Point c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
}

@@ -268,11 +268,415 @@
 c;%0A    %7D
+%0A%0A    private float sign (Point p1, Point p2, Point p3) %7B%0A        return (p1.x - p3.x) * (p2.y - p3.y) - (p1.y - p3.y) * (p2.x - p3.x);%0A    %7D%0A%0A    public boolean contains (Point p) %7B%0A        boolean pab, pbc, pca;%0A%0A        pab = sign(p, a, b) %3C 0f;%0A        pbc = sign(p, b, c) %3C 0f;%0A%0A        if (pab == pbc)%0A            return false;%0A%0A        pca = sign(p, c, a) %3C 0f;%0A%0A        return (pab == pca);%0A    %7D
 %0A%7D%0A

Add 'contains()' to check if a point is in interior of triangle.