Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
18 lines
582 B
Plaintext
18 lines
582 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isVector = exports.Vector = void 0;
|
|
var Vector = /** @class */ (function () {
|
|
function Vector(x, y) {
|
|
this.type = 0 /* VECTOR */;
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
Vector.prototype.add = function (deltaX, deltaY) {
|
|
return new Vector(this.x + deltaX, this.y + deltaY);
|
|
};
|
|
return Vector;
|
|
}());
|
|
exports.Vector = Vector;
|
|
var isVector = function (path) { return path.type === 0 /* VECTOR */; };
|
|
exports.isVector = isVector;
|
|
//# sourceMappingURL=vector.js.map |