(mathArray)
| 69177 | return (0, _validators.checkNumber)(length); |
| 69178 | } |
| 69179 | dot(mathArray) { |
| 69180 | let product = 0; |
| 69181 | for(let i = 0; i < this.ELEMENTS; ++i)product += this[i] * mathArray[i]; |
| 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; |
no outgoing calls
no test coverage detected