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

Method maxV

packages/melonjs/src/math/observableVector2d.ts:249–251  ·  view source on GitHub ↗

* Update this vector with the maximum value between this and the passed vector * @param v other vector * @returns Reference to this object for method chaining

(v: Vector2d | ObservableVector2d)

Source from the content-addressed store, hash-verified

247 * @returns Reference to this object for method chaining
248 */
249 maxV(v: Vector2d | ObservableVector2d) {
250 return this.set(this.x > v.x ? this.x : v.x, this.y > v.y ? this.y : v.y);
251 }
252
253 /**
254 * Floor the vector values

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected