MCPcopy
hub / github.com/mrdoob/three.js / multiplyScalar

Method multiplyScalar

src/math/Vector3.js:359–367  ·  view source on GitHub ↗

* Multiplies the given scalar value with all components of this instance. * * @param {number} scalar - The scalar to multiply. * @return {Vector3} A reference to this vector.

( scalar )

Source from the content-addressed store, hash-verified

357 * @return {Vector3} A reference to this vector.
358 */
359 multiplyScalar( scalar ) {
360
361 this.x *= scalar;
362 this.y *= scalar;
363 this.z *= scalar;
364
365 return this;
366
367 }
368
369 /**
370 * Multiplies the given vectors and stores the result in this instance.

Callers 11

constructorMethod · 0.95
divideScalarMethod · 0.95
_generateSampleKernelMethod · 0.95
constructorMethod · 0.95
computeBoundsFunction · 0.95
checkIntersectionsMethod · 0.95
setCursorMethod · 0.95
clampLengthMethod · 0.45
setLengthMethod · 0.45
projectOnVectorMethod · 0.45
reflectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected