def neighborCoordinates(particleNum, coordList, neighborList):
    """
    Given a certain particle and the list of coordinates and neighbors, this
    function generates the list of a particle's neighbors' coordinates. The fact
    that the indexing of the neighbor list is off, is taken into account in this
    function.

    Inputs: particleNum - index of desired particle
            coordList - list of all particle coordinates in the packing
            neighborList - list of all particle neighborhoods in the packing

    Returns: numpy array of the neighbor's coordinates
    """
    return list(map(lambda x: coordList[x], neighborList))
