new PIXI.ObservablePoint(cb, scope, x, y)
Name | Type | Default | Description |
---|---|---|---|
cb |
function |
callback when changed |
|
scope |
object |
owner of callback |
|
x |
number | 0 |
optional
position of the point on the x axis |
y |
number | 0 |
optional
position of the point on the y axis |
Members
-
x
-
Sets the X component.
-
y
-
Sets the Y component.
Methods
-
copy(point)
-
Copies the data from another point
Name Type Description point
PIXI.Point | PIXI.ObservablePoint point to copy from
-
set(x, y)
-
Sets the point to a new x and y position.
If y is omitted, both x and y will be set to x.Name Type Default Description x
number 0 optional position of the point on the x axis
y
number 0 optional position of the point on the y axis