VelocityDB.geohash.util.TwoGeoHashBoundingBox.TwoGeoHashBoundingBox C# (CSharp) Method

TwoGeoHashBoundingBox() public method

public TwoGeoHashBoundingBox ( GeoHash bottomLeft, GeoHash topRight )
bottomLeft GeoHash
topRight GeoHash
    public TwoGeoHashBoundingBox(GeoHash bottomLeft, GeoHash topRight)
    {
      if (bottomLeft.SignificantBits != topRight.SignificantBits)
      {
        throw new System.ArgumentException("Does it make sense to iterate between hashes that have different precisions?");
      }
      m_bottomLeft = GeoHash.FromLongValue(bottomLeft.LongValue, bottomLeft.SignificantBits);
      m_topRight = GeoHash.FromLongValue(topRight.LongValue, topRight.SignificantBits);
      m_boundingBox = m_bottomLeft.BoundingBox;
      m_boundingBox.ExpandToInclude(m_topRight.BoundingBox);
    }