* Add the passed vector to this vector * @param v other vector * @returns Reference to this object for method chaining
(v: Vector2d | Vector3d)
| 64 | * @returns Reference to this object for method chaining |
| 65 | */ |
| 66 | add(v: Vector2d | Vector3d) { |
| 67 | return this.set(this.x + v.x, this.y + v.y, this.z + ("z" in v ? v.z : 0)); |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Subtract the passed vector from this vector |