Example #1
0
 internal static bool Contains2D(this Envelope envelope, ArcGIS.Core.Geometry.Coordinate3D coord)
 {
     //we are only comparing the x and y!
     return(coord.X < envelope.MaxX &&
            coord.X > envelope.MinX &&
            coord.Y < envelope.MaxY &&
            coord.Y > envelope.MinY);
 }
Example #2
0
        public RBushCoord3D(ArcGIS.Core.Geometry.Coordinate3D coord, int oid)
        {
            _oid = oid;

            //save the original
            _coord = coord;

            //RBush requires a reference
            //to the envelope so we can't construct it "on-the-fly"
            _envelope = new Envelope(
                minX: coord.X - Tolerance,
                minY: coord.Y - Tolerance,
                maxX: coord.X + Tolerance,
                maxY: coord.Y + Tolerance);
        }