* Adds another point to this one and returns another one * @param {XY} that * @return {Point} new Point instance with added values
(that: XY)
| 34 | * @return {Point} new Point instance with added values |
| 35 | */ |
| 36 | add(that: XY): Point { |
| 37 | return new Point(this.x + that.x, this.y + that.y); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Adds another point to this one |
no outgoing calls