Use distance from center, not top

Doesn't make much of a difference but gives slightly better results at
the pole. Probably more pronounced if calculating on the side of a
tesseroid.