def sq_dist(p1, p2):
    """
    Calculate the non-square-root distance between two points.

    Args:
        p1, p2: 1x3 point coordinates.
    """
    return (p1[0]-p2[0])**2+(p1[1]-p2[1])**2+(p1[2]-p2[2])**2