* Add the passed vector to this vector * @param v other vector * @returns Reference to this object for method chaining
(v: Vector2d | Vector3d | ObservableVector3d)
| 165 | * @returns Reference to this object for method chaining |
| 166 | */ |
| 167 | add(v: Vector2d | Vector3d | ObservableVector3d) { |
| 168 | return this.set(this.x + v.x, this.y + v.y, this.z + ("z" in v ? v.z : 0)); |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Subtract the passed vector from this vector |