MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / scale

Method scale

src/engineMath.js:675–675  ·  view source on GitHub ↗

Returns a copy of this vector scaled by the vector passed in * @param {number} s - scale * @return {Vector2}

(s)

Source from the content-addressed store, hash-verified

673 * @param {number} s - scale
674 * @return {Vector2} */
675 scale(s) { return new Vector2(this.x * s, this.y * s); }
676
677 /** Returns the length of this vector
678 * @return {number} */

Callers 2

normalizeMethod · 0.95
clampLengthMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected