def get_distance(pos1, pos2):
    """
    Given two X, Y, Z centers in format from output of get_center() function
    using standard three dimensional distance formula:

    square root (X^2 + Y^2 + Z^2)

    :param pos1: string of format 'X, Y, Z' Where X, Y, Z are numbers
    :param pos2: string of format 'X, Y, Z' Where X, Y, Z are numbers
    :return: distance as a float
    """
    _dist_0 = float(pos1.split(',')[0]) - float(pos2.split(',')[0])
    _dist_1 = float(pos1.split(',')[1]) - float(pos2.split(',')[1])
    _dist_2 = float(pos1.split(',')[2]) - float(pos2.split(',')[2])
    return (_dist_0 ** 2 + _dist_1 ** 2 + _dist_2 ** 2) ** 0.5
