initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
shadow$provide.module$node_modules$pixi_DOT_js$lib$maths$point$Point = function(global, require, module, exports) {
|
||||
class Point {
|
||||
constructor(x = 0, y = 0) {
|
||||
this.y = this.x = 0;
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
clone() {
|
||||
return new Point(this.x, this.y);
|
||||
}
|
||||
copyFrom(p) {
|
||||
this.set(p.x, p.y);
|
||||
return this;
|
||||
}
|
||||
copyTo(p) {
|
||||
p.set(this.x, this.y);
|
||||
return p;
|
||||
}
|
||||
equals(p) {
|
||||
return p.x === this.x && p.y === this.y;
|
||||
}
|
||||
set(x = 0, y = x) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
return this;
|
||||
}
|
||||
toString() {
|
||||
return `[pixi.js/math:Point x=${this.x} y=${this.y}]`;
|
||||
}
|
||||
static get shared() {
|
||||
tempPoint.x = 0;
|
||||
tempPoint.y = 0;
|
||||
return tempPoint;
|
||||
}
|
||||
}
|
||||
const tempPoint = new Point();
|
||||
exports.Point = Point;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$maths$point$Point.js.map
|
||||
Reference in New Issue
Block a user