(self, px, py)
return (tx, ty)
Returns a tile covering region in given pixel coordinates
Returns a tile covering region in given pixel coordinates
Returns a tile covering region in given pixel coordinates
def PixelsToTile(self, px, py):
        '''Returns a tile covering region in given pixel coordinates'''

        tx = int(math.ceil(px / float(self.tileSize)) - 1)
        ty = int(math.ceil(py / float(self.tileSize)) - 1)
        return (tx, ty)
def PixelsToTile ( self , px , py ) : tx = int ( math . ceil ( px / float ( self . tileSize ) ) - 1 ) ty = int ( math . ceil ( py / float ( self . tileSize ) ) - 1 ) return ( tx , ty )