Ejemplo n.º 1
0
 def height( self ):
     """The height of the viewport in pixels.
     """
     return rectangle.height( self.rect )
Ejemplo n.º 2
0
 def height(self):
     """The height of the viewport in pixels.
     """
     return rectangle.height(self.rect)
Ejemplo n.º 3
0
 def test_height(self):
     result = rectangle.height([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 4., decimal=5)
Ejemplo n.º 4
0
 def test_height_negative(self):
     result = rectangle.height([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, -4., decimal=5)
Ejemplo n.º 5
0
 def height(self) -> float:
     return rectangle.height(self._m)
Ejemplo n.º 6
0
 def test_height(self):
     result = rectangle.height([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 4., decimal=5)
Ejemplo n.º 7
0
 def test_height_negative(self):
     result = rectangle.height([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, -4., decimal=5)