Specified Rect.
The minimum X coordinate of the rectangle.
The minimum Y coordinate of the rectangle.
The width of the rectangle, measured from the X position.
The height of the rectangle, measured from the Y position.
Return the information of the current rect in string
The height of the Rect.
The width of the Rect.
The minimum x value.
The minimum y value.
The maximum x value.
The maximum x value.
The minimum x value.
The minimum x value.
The maximum y value.
The maximum y value.
The minimum y value.
The minimum y value.
clone the current Rect.
Check whether the current rect contains the given point.
Specified point.
The specified point is included in the rectangle and returns true', otherwise it returns
false'.
Returns true if the other rect entirely inside this rectangle.
Specified rectangles.
Returns true' if all the points of the specified rectangle are included in the current rectangle,
false' otherwise.
Check whether the current Rect equals another one.
Specified rectangles.
Returns true' when the minimum and maximum values of both rectangles are equal, respectively; otherwise, returns
false'.
Check whether the current rectangle intersects with the given one.
Specified rectangles.
If intersected, return true', otherwise return
false'.
Calculate the interpolation result between this Rect and another one with given ratio.
Target Rect.
The interpolation coefficient.The range is [0,1].
Set values with another Rect.
Specified Rect.
this
Set the value of each component of the current Rect.
The x parameter of the specified rectangle
The y parameter of the specified rectangle
The width parameter of the specified rectangle
The height parameter of the specified rectangle
this
Apply matrix4 to the rect.
Returns the overlapping portion of 2 rectangles.
Output Rect.
One of the specify Rect.
Another of the specify Rect.
Calculate the interpolation result between this rect and another one with given ratio
Output rect.
Original rect.
Target rect.
The interpolation coefficient.The range is [0,1].
Returns the smallest rectangle that contains the current rect and the given rect.
Output Rect.
One of the specify Rect.
Another of the specify Rect.
Generated using TypeDoc
A 2D rectangle defined by x, y position and width, height.