Class $.wijmo.wijspread.Rect
Constructor Attributes | Constructor Name and Description |
---|---|
$.wijmo.wijspread.Rect(x, y, w, h)
Initializes a new instance of the Rect structure that has the specified <i>x</i>-coordinate, <i>y</i>-coordinate, width, and height.
|
Method Attributes | Method Name and Description |
---|---|
contains(x, y)
Indicates whether the rectangle contains the specified <i>x</i>-coordinate and <i>y</i>-coordinate.
|
|
getIntersectRect(rect)
Gets the rectangle that intersects with the current rectangle.
|
|
intersect(x, y, width, height)
Indicates whether the specified rectangle intersects with the current rectangle.
|
|
intersectRect(rect)
Indicates whether the specified rectangle intersects with the current rectangle.
|
Class Detail
$.wijmo.wijspread.Rect(x, y, w, h)
Initializes a new instance of the Rect structure that has the specified <i>x</i>-coordinate, <i>y</i>-coordinate, width, and height.
- Parameters:
- {number} x
- The x-coordinate of the top-left corner of the rectangle.
- {number} y
- The y-coordinate of the top-left corner of the rectangle.
- {number} w
- The width of the rectangle.
- {number} h
- The height of the rectangle.
Method Detail
{boolean}
contains(x, y)
Indicates whether the rectangle contains the specified <i>x</i>-coordinate and <i>y</i>-coordinate.
- Parameters:
- {number} x
- The x-coordinate of the point to check.
- {number} y
- The y-coordinate of the point to check.
- Returns:
- {boolean} true if (x, y) is contained by the rectangle; otherwise, false.
{Rect}
getIntersectRect(rect)
Gets the rectangle that intersects with the current rectangle.
- Parameters:
- {Rect} rect
- The rectangle.
- Returns:
- {Rect} The intersecting rectangle.
{boolean}
intersect(x, y, width, height)
Indicates whether the specified rectangle intersects with the current rectangle.
- Parameters:
- {number} x
- The x-coordinate of the top-left corner of the specified rectangle.
- {number} y
- The y-coordinate of the top-left corner of the specified rectangle.
- {number} width
- The width of the specified rectangle.
- {number} height
- The height of the specified rectangle.
- Returns:
- {boolean} true if the specified rectangle intersects with the current rectangle; otherwise, false.
{boolean}
intersectRect(rect)
Indicates whether the specified rectangle intersects with the current rectangle.
- Parameters:
- {GrapeCity.$.wijmo.wijspread.Rect} rect
- The specified rectangle.
- Returns:
- {boolean} true if the specified rectangle intersects with the current rectangle; otherwise, false.