aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/Transform.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/Transform.ts')
-rw-r--r--src/client/util/Transform.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/util/Transform.ts b/src/client/util/Transform.ts
index 9a66727a2..fe047a49f 100644
--- a/src/client/util/Transform.ts
+++ b/src/client/util/Transform.ts
@@ -55,10 +55,12 @@ export class Transform {
return this;
}
- //MONIKA
+ //TODO
center = (x: number, y: number): Transform => {
- this._translateX = x
- this._translateY = y
+ console.log("old x: " + this._translateX + " old y: " + this._translateY)
+ console.log("x: " + x + " y: " + y)
+ this._translateX += x
+ this._translateY += y
return this;
}