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