equals method

bool equals(
  1. Triangle triangle
)

Implementation

bool equals(Triangle triangle) {
  return triangle.a.equals(a) && triangle.b.equals(b) && triangle.c.equals(c);
}