* 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 )
| 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. |
no outgoing calls
no test coverage detected