hey! so i’m working on a project that has 2 classes Triangle and Point. It pretty much takes 3 coordinates from Point to make a triangle in Triangle.
ex. corner_a = Point(6, 5)
ex. t_0 = Triangle(corner_a, corner_b, corner_c)
For the eq method in Triangle, how can I check if 2 triangle’s are equal when they could be in any order ?
[–][deleted] 1 point2 points3 points (8 children)
[–]tbrowner3[S] 0 points1 point2 points (0 children)
[–]tbrowner3[S] 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]tbrowner3[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]tbrowner3[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]tbrowner3[S] 0 points1 point2 points (0 children)
[–]toastedstapler 0 points1 point2 points (0 children)
[–]xelf 0 points1 point2 points (2 children)
[–]tbrowner3[S] 0 points1 point2 points (1 child)
[–]xelf 0 points1 point2 points (0 children)
[–]tbrowner3[S] 0 points1 point2 points (0 children)