MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / Vector

Function Vector

assets/js/avatarMaker_js/html2canvas.js:5520–5524  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

5518
5519 var Vector = /** @class */ (function () {
5520 function Vector(x, y) {
5521 this.type = PathType.VECTOR;
5522 this.x = x;
5523 this.y = y;
5524 }
5525 Vector.prototype.add = function (deltaX, deltaY) {
5526 return new Vector(this.x + deltaX, this.y + deltaY);
5527 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected