예제 #1
0
 public bool IsInside(Bounds2I b)
 {
     return(X >= b.MinPoint.X && X <= b.MaxPoint.X && Y >= b.MinPoint.Y &&
            Y <= b.MaxPoint.Y);
 }
예제 #2
0
 public Bounds2I Intersect(Bounds2I b2)
 {
     return(new Bounds2I(Point2I.Max(MinPoint, b2.MinPoint), Point2I.Min(MaxPoint, b2.MaxPoint)));
 }
예제 #3
0
 public bool InsideExclusive(Bounds2I b)
 {
     return(X >= b.MinPoint.X && X < b.MaxPoint.X && Y >= b.MinPoint.Y &&
            Y < b.MaxPoint.Y);
 }