(object)
| 70225 | return this.check(); |
| 70226 | } |
| 70227 | fromObject(object) { |
| 70228 | if ((0, _common.config).debug) { |
| 70229 | (0, _validators.checkNumber)(object.x); |
| 70230 | (0, _validators.checkNumber)(object.y); |
| 70231 | (0, _validators.checkNumber)(object.z); |
| 70232 | } |
| 70233 | this[0] = object.x; |
| 70234 | this[1] = object.y; |
| 70235 | this[2] = object.z; |
| 70236 | return this.check(); |
| 70237 | } |
| 70238 | toObject(object) { |
| 70239 | object.x = this[0]; |
| 70240 | object.y = this[1]; |