示例#1
0
 public bool Collides(Margin margin) =>
 Difference(margin) >= 0;
示例#2
0
 private double Difference(Margin margin) =>
 Math.Min(End, margin.End) - Math.Max(Start, margin.Start);
示例#3
0
 public double Overlap(Margin margin) =>
 Math.Max(0, Difference(margin));