isRightTriangle property

bool get isRightTriangle

Check if this triangle is right

triangle is right when there is an angle equals to 90 degrees

Implementation

bool get isRightTriangle {
  final rightAngle = (pi / 2);
  return angles.any((a) => (a - rightAngle).abs() < _epsilon);
}