'Is the triangle right-angled.
Returns
is_right : boolean
See Also
sympy.geometry.line.LinearEntity.is_perpendicular
is_equilateral, is_isosceles, is_scalene
Examples
>>> from sympy.geometry import Triangle, Point
>>> t1 = Triangle(Point(0, 0), Point(4, 0), Point(4, 3))
>>> t1.is_right()
True'

def is_right(self):

    s = self.sides
    return (Segment.is_perpendicular(s[0], s[1]) or Segment.is_perpendicular(s[1], s[2]) or Segment.is_perpendicular(s[0], s[2]))
