Download Latest Version v0.13.1 source code.tar.gz (2.8 MB)
Email in envelope

Get an email when there's a new version of S2 Geometry

Home / v0.13.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-11-21 4.6 kB
v0.13.0 source code.tar.gz 2025-11-21 2.8 MB
v0.13.0 source code.zip 2025-11-21 3.2 MB
Totals: 3 Items   6.0 MB 0

Interface Changes

  • Bump required versions
  • abseil-cpp: LTS 20250814
  • clang: 14
  • CMake: 3.22
  • OpenSSL: 1.1
  • Require C++17

Fixes/enhancements

  • New function: S2DensityTree::Dilate
  • S2CellId: Make lookup tables constexpr, removing runtime init
  • New S2Cell::IsDistanceLess and related predicates
  • Do not use #pragma STDC FP_CONTRACT off for gcc to try to prevent warnings. gcc has its own pragma (which was always used)
  • Switch some ABSL_LOG(ERROR)s to DFATAL
  • New functions
  • MutableS2ShapeIndex::Remove()
  • S2EdgeVectorShape::set_dimension()
  • S2Polygon::MakeFull()
  • Modernize ExactFloat interface
  • Replace exactfloat::is_nan() with isnan(const ExactFloat&)
  • Replace ToDouble() with explicit operator double()
  • Add fpclassify(const ExactFloat&)
  • Fix S2ShapeNestingQuery when two chains share a vertex
  • Fix S2Polygon bug when intersecting polyline
  • Add S2ClosestEdgeQuery::VisitClosestShapes
  • Delete deprecated S2Error::text(); use message() instead
  • Ensure _fp_contract_off.h is included everywhere
  • Add thread annotations to SpinLock
  • Convert many const vector<>&s to Span<>s
  • Add noexcept to move operators
  • Make some comparisons stable for sorting
  • Guard against overflow in Decode functions
  • Remove S2_DEFINE_* flags macros and use ABSL_FLAG directly

What's Changed

New Contributors

Full Changelog: https://github.com/google/s2geometry/compare/v0.12.0...v0.13.0

Source: README.md, updated 2025-11-21