original_docstring: 
          Direction just needs to be a vector pointing towards side or
          corner in the 2d plane.
          
docstring: Direction just needs to be a vector pointing towards side or
  corner in the 2d plane.
docstring_tokens: Direction just needs to be a vector pointing towards side or corner in the 2d plane .
code: def align_on_border(self, direction, buff=DEFAULT_MOBJECT_TO_EDGE_BUFFER):
          """
          Direction just needs to be a vector pointing towards side or
          corner in the 2d plane.
          """
          target_point = np.sign(direction) * (FRAME_X_RADIUS, FRAME_Y_RADIUS, 0)
          point_to_align = self.get_critical_point(direction)
          shift_val = target_point - point_to_align - buff * np.array(direction)
          shift_val = shift_val * abs(np.sign(direction))
          self.shift(shift_val)
          return self
code_tokens: def align_on_border ( self , direction , buff = DEFAULT_MOBJECT_TO_EDGE_BUFFER ) : target_point = np . sign ( direction ) * ( FRAME_X_RADIUS , FRAME_Y_RADIUS , 0 ) point_to_align = self . get_critical_point ( direction ) shift_val = target_point - point_to_align - buff * np . array ( direction ) shift_val = shift_val * abs ( np . sign ( direction ) ) self . shift ( shift_val ) return self
short_docstring: Direction just needs to be a vector pointing towards side or
  corner in the 2d plane.
short_docstring_tokens: Direction just needs to be a vector pointing towards side or corner in the 2d plane .
comment: """
          Direction just needs to be a vector pointing towards side or
          corner in the 2d plane.
          """