* 向量加法 * @param other 另一个向量 * @returns 当前向量实例(链式调用)
(other: Vector2)
| 131 | * @returns 当前向量实例(链式调用) |
| 132 | */ |
| 133 | add(other: Vector2): this { |
| 134 | this.x += other.x; |
| 135 | this.y += other.y; |
| 136 | return this; |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * 向量减法 |
no outgoing calls
no test coverage detected