Two trapped particles interacting by a finite-range two-body potential in two spatial dimensions