class_docstr: Class representing a rectangle.
class_docstr_tok: ["Class","representing","a","rectangle","."]
docstr: Sets the coordinates of the corners.
  
  @param coords: a 4-tuple with the coordinates of the corners
docstr_tok: ["Sets","the","coordinates","of","the","corners",".","@","param","coords",":","a","4-tuple","with","the","coordinates","of","the","corners"]
code: def coords(self, coords):
      """Sets the coordinates of the corners.
  
      @param coords: a 4-tuple with the coordinates of the corners
      """
      self._left, self._top, self._right, self._bottom = coords
      if self._left > self._right:
          self._left, self._right = self._right, self._left
      if self._top > self._bottom:
          self._bottom, self._top = self._top, self._bottom
  
imports: from collections import defaultdict
  from math import atan2, cos, hypot, sin
  from typing import NamedTuple
  from igraph.utils import consecutive_pairs
label_desc: Use image node_id 3 for calling the Rectangle obj's underlying member method code with example usage: obj.coords(coords) without return types