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

Method set

packages/melonjs/src/geometries/point.ts:37–41  ·  view source on GitHub ↗

* set the Point x and y properties to the given values * @param x horizontal coordinate * @param y vertical coordinate * @returns Reference to this object for method chaining

(x = 0, y = 0)

Source from the content-addressed store, hash-verified

35 * @returns Reference to this object for method chaining
36 */
37 set(x = 0, y = 0) {
38 this.x = x;
39 this.y = y;
40 return this;
41 }
42
43 /**
44 * return true if this point is equal to the given point

Callers 15

setShapeMethod · 0.45
clearMethod · 0.45
setSizeMethod · 0.45
copyMethod · 0.45
unionMethod · 0.45
resetFunction · 0.45
resetFunction · 0.45
setShapeMethod · 0.45
resetFunction · 0.45
beginPathMethod · 0.45
triangulatePathMethod · 0.45
moveToMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected