Multiplies only the width/height of rect, leaving x and y as they are.
rect
x
y
multiplyDim({ x:1,y:2,width:3,height:4 }, 2);// Yields: { x:1, y:2, width:6, height: 8 } Copy
multiplyDim({ x:1,y:2,width:3,height:4 }, 2);// Yields: { x:1, y:2, width:6, height: 8 }
In comparison, multiply will also include x & y.
Rectangle
Amount to multiply by
Multiplies only the width/height of
rect
, leavingx
andy
as they are.In comparison, multiply will also include x & y.