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

Function reset

packages/melonjs/src/geometries/rectangle.ts:304–307  ·  view source on GitHub ↗
(x, y, width, height)

Source from the content-addressed store, hash-verified

302 return {
303 instance: rectangle,
304 reset(x, y, width, height) {
305 rectangle.pos.set(x, y);
306 rectangle.setSize(width, height);
307 },
308 };
309});

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
setSizeMethod · 0.45

Tested by

no test coverage detected