コード例 #1
0
ファイル: viewport.py プロジェクト: adamlwgriffiths/PyGLy
 def width( self ):
     """The width of the viewport in pixels.
     """
     return rectangle.width( self.rect )
コード例 #2
0
ファイル: viewport.py プロジェクト: trb116/pythonanalyzer
 def width(self):
     """The width of the viewport in pixels.
     """
     return rectangle.width(self.rect)
コード例 #3
0
ファイル: test_rectangle.py プロジェクト: rjsadaye/cse574
 def test_width_negative(self):
     result = rectangle.width([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, -3., decimal=5)
コード例 #4
0
ファイル: test_rectangle.py プロジェクト: rjsadaye/cse574
 def test_width(self):
     result = rectangle.width([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 3., decimal=5)
コード例 #5
0
 def width(self) -> float:
     return rectangle.width(self._m)
コード例 #6
0
ファイル: test_rectangle.py プロジェクト: RazerM/Pyrr
 def test_width_negative(self):
     result = rectangle.width([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, -3., decimal=5)
コード例 #7
0
ファイル: test_rectangle.py プロジェクト: RazerM/Pyrr
 def test_width(self):
     result = rectangle.width([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 3., decimal=5)