new Ycc.Math.Rect(startDot, width, height)
区域
| Name | Type | Description |
|---|---|---|
startDot |
Dot | |
width |
||
height |
Members
-
heightnumber
-
区域高
-
widthnumber
-
区域宽
-
xnumber
-
左上角x坐标
-
ynumber
-
左上角y坐标
-
yccClassfunction
-
构造器的引用
Methods
-
getVertices(){Array.<Ycc.Math.Dot>}
-
获取区域的顶点列表
Returns:
Type Description Array.<Ycc.Math.Dot> -
toPositive()
-
将矩形的长和宽转换为正数
-
updateByVertices(vertices){*}
-
根据顶点更新数值
Name Type Description verticesReturns:
Type Description *