code: def angle(self, vertices):
          
  
          if vertices.shape[1] != 2:
              raise ValueError('angle only valid for 2D points!')
  
          # get the vector from origin
          direction = vertices[self.vector] - vertices[self.origin]
          # get the rotation angle in radians
          angle = np.arctan2(*direction[::-1])
  
          return angle
docs: If Text is 2D, get the rotation angle in radians.
  
          Parameters
          -----------
          vertices : (n, 2) float
            Vertices in space referenced by self.points
  
          Returns
          ---------
          angle : float
            Rotation angle in radians