/// <summary>Returns a UIBox2 translated by the given amount.</summary> public readonly UIBox2i Translated(Vector2i point) { return(new UIBox2i(Left + point.X, Top + point.Y, Right + point.X, Bottom + point.Y)); }
public UIBox2i(Vector2i topLeft, Vector2i bottomRight) : this(topLeft.X, topLeft.Y, bottomRight.X, bottomRight.Y) { }
public static UIBox2i FromDimensions(Vector2i position, Vector2i size) { return(FromDimensions(position.X, position.Y, size.X, size.Y)); }
public Box2i(Vector2i bottomLeft, Vector2i topRight) : this(bottomLeft.X, bottomLeft.Y, topRight.X, topRight.Y) { }