* Copy the components of the given vector into this one * @param v other vector * @returns Reference to this object for method chaining
(v: Vector2d | Vector3d | ObservableVector3d)
| 336 | * @returns Reference to this object for method chaining |
| 337 | */ |
| 338 | copy(v: Vector2d | Vector3d | ObservableVector3d) { |
| 339 | return this.set(v.x, v.y, "z" in v ? v.z : 0); |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * return true if this vector is equal to the given values or vector |