public bool equals(LatBounds LatBounds) { return this.isEmpty() ? LatBounds.isEmpty() : Math.Abs(LatBounds.getSw() - this._swLat) + Math.Abs(this._neLat - LatBounds.getNe()) <= SphericalGeometry.EQUALS_MARGIN_ERROR; }
public bool intersects(LatBounds LatBounds) { return this._swLat <= LatBounds.getSw() ? LatBounds.getSw() <= this._neLat && LatBounds.getSw() <= LatBounds.getNe() : this._swLat <= LatBounds.getNe() && this._swLat <= this._neLat; }