The callback function triggered when x and/or y are changed
The owner of the callback
Position of the observable point on the x axis.
Position of the observable point on the y axis.
Creates a clone of this point. The callback and scope params can be overridden otherwise they will default to the clone object's values.
Optionalcb: (this: T) => anyThe callback function triggered when x and/or y are changed
Optionalscope: anyThe owner of the callback
a copy of this observable point
Copies x and y from the given point (p)
The point to copy from. Can be any of type that is or extends IPointData
The observable point instance itself
Accepts another point (p) and returns true if the given point is equal to this point
The point to check
Returns true if both x and y are equal
Sets the point to a new x and y position.
If y is omitted, both x and y will be set to x.
Optionalx: numberposition of the point on the x axis
Optionaly: numberposition of the point on the y axis
The observable point instance itself
The ObservablePoint object represents a location in a two-dimensional coordinate system, where
xrepresents the position on the horizontal axis andyrepresents the position on the vertical axis.An
ObservablePointis a point that triggers a callback when the point's position is changed.Memberof
PIXI