public RectInt2(VectorInt2 location, VectorInt2 size) { X = location.X; Y = location.Y; Width = size.X; Height = size.Y; }
public RectInt2(VectorInt2 size) { X = 0; Y = 0; Width = size.X; Height = size.Y; }
public bool Contains(VectorInt2 point) { return(point.X >= Left && point.X <= Right && point.Y >= Top && point.Y <= Bottom); }