You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There might be some code in the Golang port, but I’d recommend looking at C++ because that contains the ground truth for the s2 library, and is better maintained.
Port the s2 edge crosser (and its data structure, edge crossings) from C++ to Rust. This will be needed to eventually support polylines.
https://github.com/google/s2geometry/blob/master/src/s2/s2edge_crosser.h
https://github.com/google/s2geometry/blob/master/src/s2/s2edge_crosser.cc
https://github.com/google/s2geometry/blob/master/src/s2/s2edge_crosser_test.cc
https://github.com/google/s2geometry/blob/master/src/s2/s2edge_crossings.h
https://github.com/google/s2geometry/blob/master/src/s2/s2edge_crossings.cc
https://github.com/google/s2geometry/blob/master/src/s2/s2edge_crossings_test.cc
https://github.com/google/s2geometry/blob/master/src/s2/s2edge_crossings_internal.h
There might be some code in the Golang port, but I’d recommend looking at C++ because that contains the ground truth for the s2 library, and is better maintained.