It appears this would be useful: https://github.com/google/s2-geometry-library-java/issues/38#issuecomment-1309755246 Blaze is used at Google, so there's a starting point.