private AllPointsCacheData CalculateAllPointsCacheData() { Contract.Ensures(Contract.Result <AllPointsCacheData>() != null); Contract.Ensures(_pointList.Count <= 0 || Contract.Result <AllPointsCacheData>().CalculatedMbr != null); return(new AllPointsCacheData { CalculatedMbr = Mbr.Create(_pointList), AreaSumValue = CalculateAreaSumValue() }); }
/// <summary> /// Calculates a minimum bounding rectangle for this line string. /// </summary> /// <returns>A minimum bounding rectangle.</returns> public Mbr GetMbr() { return(Mbr.Create(this)); }