IntersectsWithInclusive() private method

private IntersectsWithInclusive ( CGRect r ) : bool
r CGRect
return bool
Beispiel #1
0
 public static CGRect Intersect(CGRect a, CGRect b)
 {
     if (!a.IntersectsWithInclusive(b))
     {
         return(Empty);
     }
     return(FromLTRB(Math.Max(a.X, b.X), Math.Max(a.Y, b.Y), Math.Min(a.Right, b.Right), Math.Min(a.Bottom, b.Bottom)));
 }
Beispiel #2
0
 public static CGRect Intersect(CGRect a, CGRect b)
 {
     if (!a.IntersectsWithInclusive(b))
     {
         return CGRect.Empty;
     }
     return CGRect.FromLTRB(Math.Max(a.X, b.X), Math.Max(a.Y, b.Y), Math.Min(a.Right, b.Right), Math.Min(a.Bottom, b.Bottom));
 }