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

Method set

packages/melonjs/src/math/vector3d.ts:37–42  ·  view source on GitHub ↗

* set the Vector x and y properties to the given values * @param x x component * @param y y component * @param [z] z component * @returns Reference to this object for method chaining

(x: number, y: number, z: number | undefined = 0)

Source from the content-addressed store, hash-verified

35 * @returns Reference to this object for method chaining
36 */
37 set(x: number, y: number, z: number | undefined = 0) {
38 this.x = x;
39 this.y = y;
40 this.z = z;
41 return this;
42 }
43
44 /**
45 * set the Vector x and y properties to 0

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
clampSelfMethod · 0.95
minVMethod · 0.95
maxVMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected