The excess-mass ellipsoid