示例#1
0
 def top( self ):
     """The top most point of the viewport in pixels.
     """
     return rectangle.top( self.rect )
示例#2
0
 def top(self):
     """The top most point of the viewport in pixels.
     """
     return rectangle.top(self.rect)
示例#3
0
 def test_top_negative(self):
     result = rectangle.top([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, 2., decimal=5)
示例#4
0
 def test_top(self):
     result = rectangle.top([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 6., decimal=5)
示例#5
0
 def top(self) -> float:
     return rectangle.top(self._m)
示例#6
0
 def test_top_negative(self):
     result = rectangle.top([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, 2., decimal=5)
示例#7
0
 def test_top(self):
     result = rectangle.top([[1.,2.],[3.,4.]])
     np.testing.assert_almost_equal(result, 6., decimal=5)