class_docstr: Class representing a rectangle.
class_docstr_tok: ["Class","representing","a","rectangle","."]
docstr: Translates the rectangle in-place.
  
  Example:
  
      >>> r = Rectangle(10, 20, 50, 70)
      >>> r.translate(30, -10)
      >>> r
      Rectangle(40.0, 10.0, 80.0, 60.0)
  
  @param dx: the X coordinate of the translation vector
  @param dy: the Y coordinate of the translation vector
docstr_tok: ["Translates","the","rectangle","in-place",".","Example",":",">",">",">","r","=","Rectangle","(","10",",","20",",","50",",","70",")",">",">",">","r.translate","(","30",",","-10",")",">",">",">","r","Rectangle","(","40.0",",","10.0",",","80.0",",","60.0",")","@","param","dx",":","the","X","coordinate","of","the","translation","vector","@","param","dy",":","the","Y","coordinate","of","the","translation","vector"]
code: def translate(self, dx, dy):
      """Translates the rectangle in-place.
  
      Example:
  
          >>> r = Rectangle(10, 20, 50, 70)
          >>> r.translate(30, -10)
          >>> r
          Rectangle(40.0, 10.0, 80.0, 60.0)
  
      @param dx: the X coordinate of the translation vector
      @param dy: the Y coordinate of the translation vector
      """
      self._left += dx
      self._right += dx
      self._top += dy
      self._bottom += dy
  
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 27 for calling the Rectangle obj's underlying member method code with example usage: obj.translate(dx, dy) without return types