(scalar)
| 69334 | return this.check(); |
| 69335 | } |
| 69336 | multiplyByScalar(scalar) { |
| 69337 | for(let i = 0; i < this.ELEMENTS; ++i)this[i] *= scalar; |
| 69338 | return this.check(); |
| 69339 | } |
| 69340 | check() { |
| 69341 | if ((0, _common.config).debug && !this.validate()) throw new Error("math.gl: ".concat(this.constructor.name, " some fields set to invalid numbers'")); |
| 69342 | return this; |