(minVector, maxVector)
| 69317 | return this.check(); |
| 69318 | } |
| 69319 | clamp(minVector, maxVector) { |
| 69320 | for(let i = 0; i < this.ELEMENTS; ++i)this[i] = Math.min(Math.max(this[i], minVector[i]), maxVector[i]); |
| 69321 | return this.check(); |
| 69322 | } |
| 69323 | add(...vectors) { |
| 69324 | for (const vector of vectors)for(let i = 0; i < this.ELEMENTS; ++i)this[i] += vector[i]; |
| 69325 | return this.check(); |