(self, screen_coordinates)
return np.array([x, y], np.float32)
Converts screen coordinates to viewport coordinates flipped vertically.

    Args:
      screen_coordinates: 2-component tuple, with components being integral
        numbers in range defined by the screen/window resolution.
    Returns:
      A 2-component tuple, with components being floating point values in range
      [0, 1]. The height component value will be flipped, with 1 at the top, and
      0 at the bottom of the viewport.
Converts screen coordinates to viewport coordinates flipped vertically.
Converts screen coordinates to viewport coordinates flipped vertically .
def screen_to_inverse_viewport(self, screen_coordinates):
    """Converts screen coordinates to viewport coordinates flipped vertically.

    Args:
      screen_coordinates: 2-component tuple, with components being integral
        numbers in range defined by the screen/window resolution.
    Returns:
      A 2-component tuple, with components being floating point values in range
      [0, 1]. The height component value will be flipped, with 1 at the top, and
      0 at the bottom of the viewport.
    """
    x = screen_coordinates[0] / self._screen_size.width
    y = 1. - (screen_coordinates[1] / self._screen_size.height)
    return np.array([x, y], np.float32)
def screen_to_inverse_viewport ( self , screen_coordinates ) : x = screen_coordinates [ 0 ] / self . _screen_size . width y = 1. - ( screen_coordinates [ 1 ] / self . _screen_size . height ) return np . array ( [ x , y ] , np . float32 )