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

    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].
Converts screen coordinates to viewport coordinates.
Converts screen coordinates to viewport coordinates .
def screen_to_viewport(self, screen_coordinates):
    """Converts screen coordinates to viewport coordinates.

    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].
    """
    x = screen_coordinates[0] / self._screen_size.width
    y = screen_coordinates[1] / self._screen_size.height
    return np.array([x, y], np.float32)
def screen_to_viewport ( self , screen_coordinates ) : x = screen_coordinates [ 0 ] / self . _screen_size . width y = screen_coordinates [ 1 ] / self . _screen_size . height return np . array ( [ x , y ] , np . float32 )