()
| 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; |
| 69343 | } |
| 69344 | validate() { |
| 69345 | let valid = this.length === this.ELEMENTS; |
| 69346 | for(let i = 0; i < this.ELEMENTS; ++i)valid = valid && Number.isFinite(this[i]); |
no test coverage detected