/** * Returns true if the edge (v0, v1) intersects the given longitude * interval, and then saves 'v1' to be used as the next 'v0'. */ public bool Intersects(S2Point v1) { var lng1 = S2LatLng.Longitude(v1).Radians; var result = interval.Intersects(S1Interval.FromPointPair(lng0, lng1)); lng0 = lng1; return(result); }
/** *'interval' is the longitude interval to be tested against, and 'v0' is * the first vertex of edge chain. */ public LongitudePruner(S1Interval interval, S2Point v0) { this.interval = interval; lng0 = S2LatLng.Longitude(v0).Radians; }