@staticmethod
    def calcdistance(p1, p2):
        ''' Calculate the distance between two three-dimensional points.
        '''
        a = p1[0] - p2[0]
        b = p1[1] - p2[1]
        c = 0
        if p1[2] is not None and p2[2] is not None:
            c = p1[2] - p2[2]
        return math.hypot(math.hypot(a, b), c)
dataset/ETHPy150Open coreemu/core/daemon/core/mobility.py/BasicRangeModel.calcdistance/original