Beispiel #1
0
        public override Rect UnionBoundsWith(Rect rect, bool includeMargins)
        {
            foreach (var vertex in VertexList)
              {
            rect = rect.Union(vertex.Position);
              }

              return rect;
        }
Beispiel #2
0
 public override Rect UnionBoundsWith(Rect rect, bool includeMargins)
 {
     var bounds = InnerBounds;
     if (includeMargins)
     {
         bounds.Inflate(Settings.LineWidth + Settings.ConnectionStalkLength);
     }
     return rect.Union(bounds);
 }