/// <summary> /// Assigment sets from another /// </summary> /// <param name="Other">The other polygon.</param> public void Set(C2DPolyBase Other) { Clear(); Lines.MakeValueCopy(Other.Lines); BoundingRect.Set(Other.BoundingRect); for (var i = 0; i < Other.LineRects.Count; i++) { LineRects.Add(new C2DRect(Other.LineRects[i])); } }
/// <summary> /// Forms the bounding rectangle. /// </summary> protected void MakeBoundingRect() { if (LineRects.Count == 0) { BoundingRect.Clear(); return; } else { BoundingRect.Set(LineRects[0]); for (var i = 1; i < LineRects.Count; i++) { BoundingRect.ExpandToInclude(LineRects[i]); } } }