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