(self, px, py)
return tx, ty
Returns coordinates of the tile covering region in pixel coordinates
Returns coordinates of the tile covering region in pixel coordinates
Returns coordinates of the tile covering region in pixel coordinates
def PixelsToTile(self, px, py):
        "Returns coordinates of the tile covering region in 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