MCPcopy Create free account
hub / github.com/melonjs/melonJS / resize

Method resize

packages/melonjs/src/geometries/rectangle.ts:150–154  ·  view source on GitHub ↗

* resize the rectangle * @param w - new width of the rectangle * @param h - new height of the rectangle * @returns this rectangle

(w: number, h: number)

Source from the content-addressed store, hash-verified

148 * @returns this rectangle
149 */
150 resize(w: number, h: number) {
151 this.width = w;
152 this.height = h;
153 return this;
154 }
155
156 /**
157 * scale the rectangle

Callers 1

unionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected