Esempio n. 1
0
 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()
     });
 }
Esempio n. 2
0
 /// <summary>
 /// Calculates a minimum bounding rectangle for this line string.
 /// </summary>
 /// <returns>A minimum bounding rectangle.</returns>
 public Mbr GetMbr()
 {
     return(Mbr.Create(this));
 }