Class: IntRect
Memberof
M3DMath
Description
整数矩形
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new IntRect(): IntRect
Returns
Description
构造函数
• new IntRect(left
, top
, right
, bottom
): IntRect
Parameters
Name | Type |
---|---|
left | number |
top | number |
right | number |
bottom | number |
Returns
Description
构造函数
• new IntRect(data
): IntRect
Parameters
Name | Type |
---|---|
data | number [] |
Returns
Description
构造函数
Properties
bottom
• bottom: number
Description
Bottom coordinate.
left
• left: number
Description
Left coordinate.
right
• right: number
Description
Right coordinate.
top
• top: number
Description
Top coordinate.
Methods
Center
▸ Center(): Vector2
Returns
Description
获取整数矩形中心
Data
▸ Data(): number
Returns
number
Description
获取整数矩形数据
Equal
▸ Equal(rhs
): boolean
Parameters
Name | Type |
---|---|
rhs | IntRect |
Returns
boolean
Description
判断两整数矩形是否相等
Height
▸ Height(): number
Returns
number
Description
获取整数矩形高度