import math


def getDirectedDist(obj1, obj2, metrics):
    """
    Returns delX, delY, delZ, delO from obj1 to obj2
    """
    (x1, y1, z1) = metrics[obj1][0]
    (x2, y2, z2) = metrics[obj2][0]
    return [x2-x1, y2-y1, z2-z1, math.atan2((y2-y1),(x2-x1))%(2*math.pi)]