def discreteGridPosToID(x: int, y: int = 0, width: int = 0, z: int = 0, height: int = 0):
    """Returns a unique number of based on the x, y and z coordinates entered.
    Uniqueness is dimension dependent"""
    return (z * width * height) + (y * width) + x