可选
out: Rectangle(Optional) The rectangle object used to store the result. If null, a new one is created. Recommendation: Reuse objects as much as possible to reduce object creation overhead. The Rectangle.TEMP object can be used for object reuse.
A Rectangle object with the same values for x, y, width, and height properties as the current Rectangle object.
The destination object to copy to.
The source Rectangle object.
The rectangle object itself after the property values have been modified.
The Rectangle object to compare.
True if all properties are equal, false otherwise.
The Rectangle object to compare.
True if the specified rectangle intersects with this one, false otherwise.
The x-coordinate of the top-left corner of the rectangle.
The y-coordinate of the top-left corner of the rectangle.
The width of the rectangle.
The height of the rectangle.
The rectangle object itself after the property values have been modified.
静态
_get静态
create静态
minCreates a rectangle from two corner points.
The smallest x value.
The smallest y value.
The largest x value.
The largest y value.
可选
out: RectangleOptional Rectangle object to store the result.
The resulting rectangle.
En
The
Rectangle
object is an area defined by its position, as indicated by its top-left corner point (x, y), and by its width and height. The x, y, width, and height properties of the Rectangle class are independent of each other; changing the value of one property has no effect on the others.Zh
Rectangle
对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互独立;更改一个属性的值不会影响其他属性。