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

Method setV

packages/melonjs/src/math/observableVector3d.ts:158–160  ·  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 | ObservableVector3d)

Source from the content-addressed store, hash-verified

156 * @returns Reference to this object for method chaining
157 */
158 setV(v: Vector2d | Vector3d | ObservableVector3d) {
159 return this.set(v.x, v.y, "z" in v ? v.z : undefined);
160 }
161
162 /**
163 * Add the passed vector to this vector

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected