import math


def distanceOfPosition(pos1, pos2):
    """To get the distance between 2 given 3D points."""
    return math.sqrt(pow(pos1[0]-pos2[0],2) + pow(pos1[1]-pos2[1],2) + pow(pos1[2]-pos2[2],2))