pixi.geom.Point

type
class
metadata
:native
"PIXI.Point"

Constructor

new(x : Float, y : Float)
parameters
x {Float} position of the point on the x axis
y {Float} position of the point on the y axis
The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.

Instance Variables

x : Float

y : Float

Instance Methods

clone() : Point

returns
{Point} a copy of the point
Creates a clone of this point

set(x : Float, y : Float) : Void

parameters
[x=0] {Float} position of the point on the x axis
[y=0] {Float} position of the point on the y axis
Sets the point to a new x and y position. If y is ommited, both x and y will be set to x.