Constructors
constructor
- new csmRect(x?: number, y?: number, w?: number, h?: number): csmRect
-
Parameters
-
x: number = 0
-
y: number = 0
-
w: number = 0
-
h: number = 0
Properties
height
height: number
width
width: number
x
x: number
y
y: number
Methods
expand
- expand(w: number, h: number): void
-
Returns void
getBottom
- getBottom(): number
-
Returns number
getCenterX
- getCenterX(): number
-
Returns number
getCenterY
- getCenterY(): number
-
Returns number
getRight
- getRight(): number
-
Returns number
setRect
- setRect(r: csmRect): void
-
Returns void
矩形形状(座標・長さはfloat値)を定義するクラス