Name | Type | Attributes | Default | Description |
---|---|---|---|---|
x |
number |
<optional> |
0 |
position of the point on the x axis |
y |
number |
<optional> |
0 |
position of the point on the y axis |
Implements
- IPoint
Members
- Default Value:
- 0
- Default Value:
- 0
Methods
PIXI.Point.copy (this, p) PIXI.Matrix Deprecated`` : since 5.0.0 static
Name | Type | Description |
---|---|---|
this |
PIXI.Matrix | |
p |
PIXI.Matrix |
- See:
Returns:
Type | Description |
---|---|
PIXI.Matrix |
clone () PIXI.Point
Creates a clone of this point
Returns:
Type | Description |
---|---|
PIXI.Point | a copy of the point |
Copies x and y from the given point
Name | Type | Description |
---|---|---|
p |
PIXI.IPointData |
The point to copy from |
Returns:
Type | Description |
---|---|
this | Returns itself. |
copyTo (p) PIXI.IPoint
Copies x and y into the given point
Name | Type | Description |
---|---|---|
p |
PIXI.IPoint |
The point to copy. |
Returns:
Type | Description |
---|---|
PIXI.IPoint | Given point with values updated |
Returns true if the given point is equal to this point
Name | Type | Description |
---|---|---|
p |
PIXI.IPointData |
The point to check |
Returns:
Type | Description |
---|---|
boolean | Whether the given point equal to this point |
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 | Attributes | Default | Description |
---|---|---|---|---|
x |
number |
<optional> |
0 |
position of the point on the x axis |
y |
number |
<optional> |
x |
position of the point on the y axis |
Returns:
Type | Description |
---|---|
this | Returns itself. |