hypotenuse property
Get hypotenuse
the longest line of this triangle
Implementation
Line get hypotenuse =>
sides.reduce((cur, next) => cur.length > next.length ? cur : next);
Get hypotenuse
the longest line of this triangle
Line get hypotenuse =>
sides.reduce((cur, next) => cur.length > next.length ? cur : next);