Beispiel #1
1
    def position( self ):
        """The origin of the viewport in pixels as a 2D vector.

        This is the bottom left corner.
        """
        return rectangle.position( self.rect )
Beispiel #2
1
 def test_position(self):
     result = rectangle.position([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, [1.,2.], decimal=5)
Beispiel #3
0
    def position(self):
        """The origin of the viewport in pixels as a 2D vector.

        This is the bottom left corner.
        """
        return rectangle.position(self.rect)
Beispiel #4
0
 def test_position(self):
     result = rectangle.position([[1.,2.],[-3.,-4.]])
     np.testing.assert_almost_equal(result, [1.,2.], decimal=5)
Beispiel #5
0
 def position(self) -> np.ndarray:
     return rectangle.position(self._m)