Multiplies all components of rect
by amount
.
multiplyScalar({ width:10, height:20 }, 2); // { width:20, height: 40 }
Multiplies all components of rect
by amount
.
This includes x,y if present.
multiplyScalar({ width:10, height:20 }, 2); // { width:20, height: 40 }
multiplyScalar({ x: 1, y: 2, width:10, height:20 }, 2); // { x: 2, y: 4, width:20, height: 40 }
Multiplies all components of
rect
byamount
. This includes x,y if present.Use multiplyDim to only multiply width & height.
Param: rect
Param: amount