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

Method set

packages/melonjs/src/math/observableVector3d.ts:73–81  ·  view source on GitHub ↗

* Sets the x and y coordinates of the point. * @param x - The new x-coordinate value. * @param y - The new y-coordinate value. * @param z - The new z-coordinate value. * @returns Reference to this object for method chaining.

(x = 0, y = 0, z = 0)

Source from the content-addressed store, hash-verified

71 * @returns Reference to this object for method chaining.
72 */
73 set(x = 0, y = 0, z = 0) {
74 this.callBackEnabled = false;
75 this._vector3d.x = x;
76 this._vector3d.y = y;
77 this._vector3d.z = z;
78 this._callback?.();
79 this.callBackEnabled = true;
80 return this;
81 }
82
83 /**
84 * Sets the x and y coordinates of the point without triggering the callback.

Callers 15

setZeroMethod · 0.95
setVMethod · 0.95
addMethod · 0.95
subMethod · 0.95
scaleMethod · 0.95
toIsoMethod · 0.95
to2dMethod · 0.95
divMethod · 0.95
absMethod · 0.95
minVMethod · 0.95
maxVMethod · 0.95
copyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected