Пример #1
0
 private double GetHorizontalOverlapWith(OutputWidget op)
 {
     return(Math.Min(Position.X + Width, op.Position.X + op.Width) - Math.Max(Position.X, op.Position.X));
 }
Пример #2
0
 private double GetVerticalOverlapWith(OutputWidget op)
 {
     return(Math.Min(Position.Y + Height, op.Position.Y + op.Height) - Math.Max(Position.Y, op.Position.Y));
 }