Creates a new ObservablePoint instance.
The x-coordinate of the point. Default is 0.
The y-coordinate of the point. Default is 0.
Optional
callback: (() => void)The callback function to be called when the point changes. Default is undefined.
Gets the x-coordinate of the point.
Sets the x-coordinate of the point.
The new x-coordinate value.
Gets the y-coordinate of the point.
Sets the y-coordinate of the point.
The new y-coordinate value.
Creates a clone of the ObservablePoint.
A new ObservablePoint instance with the same coordinates and callback function.
Checks if the point is equal to the given coordinates or another ObservablePoint.
The x-coordinate or the ObservablePoint to compare.
The y-coordinate. Required if the first parameter is a number.
True if the point is equal to the given coordinates or another ObservablePoint, false otherwise.
Sets the x and y coordinates of the point.
The new x-coordinate value.
The new y-coordinate value.
Reference to this object for method chaining.
Sets the x and y coordinates of the point without triggering the callback.
The new x-coordinate value.
The new y-coordinate value.
Reference to this object for method chaining.
Represents an observable point in 2D space.