()
| 69182 | return (0, _validators.checkNumber)(product); |
| 69183 | } |
| 69184 | normalize() { |
| 69185 | const length = this.magnitude(); |
| 69186 | if (length !== 0) for(let i = 0; i < this.ELEMENTS; ++i)this[i] /= length; |
| 69187 | return this.check(); |
| 69188 | } |
| 69189 | multiply(...vectors) { |
| 69190 | for (const vector of vectors)for(let i = 0; i < this.ELEMENTS; ++i)this[i] *= vector[i]; |
| 69191 | return this.check(); |
no test coverage detected