Ellipsoid: fix bug in intercepts calculation