* Sets the x and y coordinates of the point. * @param x - The new x-coordinate value. * @param y - The new y-coordinate value. * @returns Reference to this object for method chaining.
(x = 0, y = 0)
| 62 | * @returns Reference to this object for method chaining. |
| 63 | */ |
| 64 | set(x = 0, y = 0) { |
| 65 | this.callBackEnabled = false; |
| 66 | this._vector2d.x = x; |
| 67 | this._vector2d.y = y; |
| 68 | this._callback?.(); |
| 69 | this.callBackEnabled = true; |
| 70 | return this; |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Sets the x and y coordinates of the point without triggering the callback. |