I may be missing something here but the example given of finding the midpoint between to points across the antimeridian seems at best misleading. The formula given, averaging each coordinate, does not work for spherical coordinates as this post demonstrates. And the correct formula for doing so is never given.