示例#1
0
 /// <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));
 }
示例#2
0
 public UIBox2i(Vector2i topLeft, Vector2i bottomRight) : this(topLeft.X, topLeft.Y, bottomRight.X, bottomRight.Y)
 {
 }
示例#3
0
 public static UIBox2i FromDimensions(Vector2i position, Vector2i size)
 {
     return(FromDimensions(position.X, position.Y, size.X, size.Y));
 }
示例#4
0
 public Box2i(Vector2i bottomLeft, Vector2i topRight) : this(bottomLeft.X, bottomLeft.Y, topRight.X, topRight.Y)
 {
 }