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