Module IPoint-PIXI

type t = [
| `Point(PIXI.Point.t)
| `ObservablePoint(PIXI.ObservablePoint.t)
];

IPoint object represents either Point or ObservablePoint

let copyFrom: t => t => t;

Copies x and y from second into the first point

parameter p1

The point to copy into

parameter p2

The point to copy from

returns

First point with values updated

let copyTo: t => t => t;

Copies x and y into from first to second point

parameter p1

The point to copy from

parameter p2

The point to copy into

returns

Second point with values updated

let equals: t => t => bool;

Returns true if a given point is equal to other point

parameter p1

first point

parameter p2

The point to check

returns

Whether the first point equal to second point