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

Method setV

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

* set the Vector x and y properties using the passed vector * @param v other vector * @returns Reference to this object for method chaining

(v: Vector2d | Vector3d)

Source from the content-addressed store, hash-verified

55 * @returns Reference to this object for method chaining
56 */
57 setV(v: Vector2d | Vector3d) {
58 return this.set(v.x, v.y, "z" in v ? v.z : undefined);
59 }
60
61 /**
62 * Add the passed vector to this vector

Callers 10

updateTargetMethod · 0.45
setVelocityMethod · 0.45
constructorMethod · 0.45
setRegionMethod · 0.45
drawTileLayerMethod · 0.45
drawTileLayerMethod · 0.45
vector3d.spec.tsFile · 0.45
drawMethod · 0.45
drawMethod · 0.45

Calls 1

setMethod · 0.95

Tested by

no test coverage detected