main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
582 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.isVector = exports.Vector = void 0;
|
---|
4 | var Vector = /** @class */ (function () {
|
---|
5 | function Vector(x, y) {
|
---|
6 | this.type = 0 /* VECTOR */;
|
---|
7 | this.x = x;
|
---|
8 | this.y = y;
|
---|
9 | }
|
---|
10 | Vector.prototype.add = function (deltaX, deltaY) {
|
---|
11 | return new Vector(this.x + deltaX, this.y + deltaY);
|
---|
12 | };
|
---|
13 | return Vector;
|
---|
14 | }());
|
---|
15 | exports.Vector = Vector;
|
---|
16 | var isVector = function (path) { return path.type === 0 /* VECTOR */; };
|
---|
17 | exports.isVector = isVector;
|
---|
18 | //# sourceMappingURL=vector.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.