示例#1
0
        /**
         * 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);
        }
示例#2
0
        /** Return true if this rectangle and the given other rectangle have any
         * points in common. */

        public bool Intersects(S2LatLngRect other)
        {
            return(_lat.Intersects(other._lat) && _lng.Intersects(other._lng));
        }