def position( self ): """The origin of the viewport in pixels as a 2D vector. This is the bottom left corner. """ return rectangle.position( self.rect )
def test_position(self): result = rectangle.position([[1.,2.],[-3.,-4.]]) np.testing.assert_almost_equal(result, [1.,2.], decimal=5)
def position(self): """The origin of the viewport in pixels as a 2D vector. This is the bottom left corner. """ return rectangle.position(self.rect)
def position(self) -> np.ndarray: return rectangle.position(self._m)