* Sets the x and y coordinates of the point. * @param x - The new x-coordinate value. * @param y - The new y-coordinate value. * @param z - The new z-coordinate value. * @returns Reference to this object for method chaining.
(x = 0, y = 0, z = 0)
| 71 | * @returns Reference to this object for method chaining. |
| 72 | */ |
| 73 | set(x = 0, y = 0, z = 0) { |
| 74 | this.callBackEnabled = false; |
| 75 | this._vector3d.x = x; |
| 76 | this._vector3d.y = y; |
| 77 | this._vector3d.z = z; |
| 78 | this._callback?.(); |
| 79 | this.callBackEnabled = true; |
| 80 | return this; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Sets the x and y coordinates of the point without triggering the callback. |