Class type Point-PIXI._t

method x#=: Js.Internal.meth([ `Arity_1(float) ], unit)

position of the point on the x axis

method x: float

position of the point on the x axis

method y#=: Js.Internal.meth([ `Arity_1(float) ], unit)

position of the point on the y axis

method y: float

position of the point on the y axis

method clone: Js.Internal.meth([ `Arity_0 ], Js.t(_t))

Creates a clone of this point

returns

a copy of the point

method copyFrom: Js.Internal.meth([ `Arity_1(Js.t(_t)) ], Js.t(_t))

Copies x and y from the given point

deprecated

consider using IPoint.copyFrom instead for ObservablePoint support

see /bs-pixi/PIXI/IPoint-PIXI/#val-copyFrom

IPoint.copyFrom

parameter p

The point to copy from

returns

itself

method copyTo: Js.Internal.meth([ `Arity_1(Js.t(_t)) ], Js.t(_t))

Copies x and y into the given point

deprecated

consider using IPoint.copyTo instead for ObservablePoint support

see /bs-pixi/PIXI/IPoint-PIXI/#val-copyTo

IPoint.copyTo

parameter p

The point to copy

returns

Given point with values updated

method equals: Js.Internal.meth([ `Arity_1(Js.t(_t)) ], bool)

Returns true if the given point is equal to this point

deprecated

consider using IPoint.equals instead for ObservablePoint support

see /bs-pixi/PIXI/IPoint-PIXI/#val-equals

Point.equals

parameter p

The point to check

returns

Whether the given point equal to this point

method set: Js.Internal.meth([ `Arity_2((float, float)) ], unit)

Sets the point to a new x and y position. If y is omitted, both x and y will be set to x.

deprecated

consider using Point.set instead

see /bs-pixi/PIXI/Point-PIXI/#val-set

Point.set

parameter x

position of the point on the x axis

parameter y

position of the point on the y axis