public double getArea() { double first = point1.getDistance(point2); double second = point1.getDistance(point3); return(first * second); }
public double getPerimeter() { double first = point1.getDistance(point2); double second = point2.getDistance(point3); double third = point3.getDistance(point1); return(first + second + third); }