* Subtract the passed vector from this vector * @param v other vector * @returns Reference to this object for method chaining
(v: Vector2d | Vector3d | ObservableVector3d)
| 174 | * @returns Reference to this object for method chaining |
| 175 | */ |
| 176 | sub(v: Vector2d | Vector3d | ObservableVector3d) { |
| 177 | return this.set(this.x - v.x, this.y - v.y, this.z - ("z" in v ? v.z : 0)); |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Multiply this vector values by the given scalar |