davidreynolds / gos2 Goto Github PK View Code? Open in Web Editor NEW 11.0 11.0 9.0 420 KB The S2 Geometry Library is a spherical geometry library, useful for manipulating regions on the sphere (commonly on Earth) and indexing geographic data. For an analogous library in C++, please see http://code.google.com/p/s2-geometry-library/. Go 100.00% Introduction ยท People ยท Discuss
Rect.AddPoint() wraps longitude Example: rect := s2.RectFromPointPair( s2.LatLngFromDegrees(54.7167480, 25.2167960), s2.LatLngFromDegrees(27.9634404, -118.3956572)) rect = rect.AddPoint( s2.LatLngFromDegrees(-33.8653109, 151.1930331)) This unexpectedly results in a rectangle on the Eastern hemisphere: NW = 54.7167480, 25.2167960 SE = -33.8653109, 151.1930331 I expected: NW = 54.716748, -118.3956572 SE = -33.8653109, 151.1930331
Vue.js ๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
javascript JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Machine learning Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Facebook We are working to build community through open source technology. NB: members must have two-factor auth.