* set the Vector x and y properties to the given values * @param x x component * @param y y component * @param [z] z component * @returns Reference to this object for method chaining
(x: number, y: number, z: number | undefined = 0)
| 35 | * @returns Reference to this object for method chaining |
| 36 | */ |
| 37 | set(x: number, y: number, z: number | undefined = 0) { |
| 38 | this.x = x; |
| 39 | this.y = y; |
| 40 | this.z = z; |
| 41 | return this; |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * set the Vector x and y properties to 0 |