예제 #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)