class Triangle (2 of 2)
public boolean isIsosceles() {
Point p1 = (Point) vertices.elementAt(0);
Point p2 = (Point) vertices.elementAt(1);
Point p3 = (Point) vertices.elementAt(2);
return ((d12 == d23) || (d23 == d31) || (d12 == d31));
private int dist(Point p1, Point p2) {
Math.sqrt((double)(((p1.x - p2.x)*(p1.x - p2.x)) +
((p1.y - p2.y)*(p1.y - p2.y)))) );