Beispiel #1
0
        /**
         * Return true if the edge AB intersects the given edge of constant longitude.
         */

        private static bool IntersectsLngEdge(S2Point a, S2Point b,
                                              R1Interval lat, double lng)
        {
            // Return true if the segment AB intersects the given edge of constant
            // longitude. The nice thing about edges of constant longitude is that
            // they are straight lines on the sphere (geodesics).

            return(S2.SimpleCrossing(a, b, S2LatLng.FromRadians(lat.Lo, lng)
                                     .ToPoint(), S2LatLng.FromRadians(lat.Hi, lng).ToPoint()));
        }