Coherence properties of two trapped particles