code: def vecrotate(v, theta, about=np.array((0, 0))):
      """rotate a vector v by angle theta (in radians) about point <about>"""
      cth = math.cos(theta)
      sth = math.sin(theta)
  
      return pt(
          cth * v[0]
          - sth * v[1]
          + about[0]
          - cth * about[0]
          + sth * about[1],
          sth * v[0]
          + cth * v[1]
          + about[1]
          - sth * about[0]
          - cth * about[1],
      )
  
file_path: pdftabextract/pdftabextract/geom.py
imports: import math
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: vecrotate(v, theta, about) and returns: pt