def size(self): """The size of the viewport in pixels as a 2D vector. """ return rectangle.size(self.rect)
def size( self ): """The size of the viewport in pixels as a 2D vector. """ return rectangle.size( self.rect )
def size(self) -> np.ndarray: return rectangle.size(self._m)
def test_size(self): result = rectangle.size([[1.,2.],[-3.,-4.]]) np.testing.assert_almost_equal(result, [-3.,-4.], decimal=5)