Constructors
constructor
- new Rect(xMin?: number, yMin?: number, width?: number, height?: number): Rect
-
Parameters
-
Optional xMin: number
-
Optional yMin: number
-
Optional width: number
-
Optional height: number
Accessors
height
- get height(): number
- set height(val: number): void
-
Returns number
-
Parameters
Returns void
width
- get width(): number
- set width(val: number): void
-
Returns number
-
Parameters
Returns void
xMax
-
Returns number
xMin
- get xMin(): number
- set xMin(val: number): void
-
Returns number
-
Parameters
Returns void
yMax
-
Returns number
yMin
- get yMin(): number
- set yMin(val: number): void
-
Returns number
-
Parameters
Returns void
Methods
clone
-
拷贝出来的对象
getCenter
-
set
-
Parameters
Returns void
transformByPositionScale
-
Parameters
Returns void
Static createFromArray
- createFromArray(array: number[]): Rect
-
Parameters
拷贝该向量
Rect