* Subtract the passed vector from this vector * @param v other vector * @returns Reference to this object for method chaining
(v: Vector2d | Vector3d)
| 73 | * @returns Reference to this object for method chaining |
| 74 | */ |
| 75 | sub(v: Vector2d | Vector3d) { |
| 76 | return this.set(this.x - v.x, this.y - v.y, this.z - ("z" in v ? v.z : 0)); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Multiply this vector values by the given scalar |
no test coverage detected