コード例 #1
0
 public Box2 GetBoxAtLocation(Vector2 location) => Box2.FromCornerSize(location, Width, Height);
コード例 #2
0
 static Box2 ConstrainSize(View view, Box2 box) => Box2.FromCornerSize(box.TopLeft, ConstrainSize(view, box.Size));