trees.py
def _point_position(self, point: Tuple[int, int]) -> TwoDTree:
        """ Return the leaf <self> in the direction point <point> is located at.

        Runtime: O(1)
        """
        if self._split_type == 'x':
            if point[0] <= self._point[0]:
                return self._lt
            else:
                return self._gt
        elif self._split_type == 'y':
            if point[1] <= self._point[1]:
                return self._lt
            else:
                return self._gt
 Return the leaf <self> in the direction point <point> is located at.

        Runtime: O(1)
        
Return the leaf  in the direction point  is located at.
Return the leaf in the direction point is located at .
def _point_position(self, point: Tuple[int, int]) -> TwoDTree:
        if self._split_type == 'x':
            if point[0] <= self._point[0]:
                return self._lt
            else:
                return self._gt
        elif self._split_type == 'y':
            if point[1] <= self._point[1]:
                return self._lt
            else:
                return self._gt
def _point_position ( self , point : Tuple [ int , int ] ) -> TwoDTree : if self . _split_type == 'x' : if point [ 0 ] <= self . _point [ 0 ] : return self . _lt else : return self . _gt elif self . _split_type == 'y' : if point [ 1 ] <= self . _point [ 1 ] : return self . _lt else : return self . _gt
Return the leaf <self> in the direction point <point> is located at.
Return the leaf <self > in the direction point <point > is located at .
""" Return the leaf <self> in the direction point <point> is located at.

        Runtime: O(1)
        """
self
point
Tuple[int, int]