ThirdParty.iOS4Unity.CGRect.IntersectsWithInclusive C# (CSharp) Method

IntersectsWithInclusive() private method

private IntersectsWithInclusive ( CGRect r ) : bool
r CGRect
return bool
        private bool IntersectsWithInclusive(CGRect r)
        {
            return X <= r.Right && Right >= r.X && Y <= r.Bottom && Bottom >= r.Y;
        }

Usage Example

コード例 #1
0
ファイル: CGRect.cs プロジェクト: Bectinced-aeN/vrcsdk
 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)));
 }
All Usage Examples Of ThirdParty.iOS4Unity.CGRect::IntersectsWithInclusive