/// <summary> /// Forms the bounding rectangles for all the lines. /// </summary> protected void MakeLineRects() { LineRects.Clear(); for (var i = 0; i < Lines.Count; i++) { var pRect = new C2DRect(); Lines[i].GetBoundingRect(pRect); LineRects.Add(pRect); } }
/// <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> /// Clears all. /// </summary> public void Clear() { BoundingRect.Clear(); Lines.Clear(); LineRects.Clear(); }