Changed displacements and distance methods so they accept a 3D coordinate rather than a particle id