(x, y)
| 672 | return new Vector2(1, 0); |
| 673 | } |
| 674 | constructor(x, y){ |
| 675 | if (x !== undefined) { |
| 676 | this.x = x; |
| 677 | if (y !== undefined) { |
| 678 | this.y = y; |
| 679 | } else { |
| 680 | this.y = x; |
| 681 | } |
| 682 | } |
| 683 | } |
| 684 | clone() { |
| 685 | return new Vector2(this.x, this.y); |
| 686 | } |
nothing calls this directly
no outgoing calls
no test coverage detected