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