From fbe38c978a2cf65e3d7412d3595739015a81b7af Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sat, 7 Aug 2021 14:41:29 +0200 Subject: [PATCH] doc: added TODO comment for scaling vectors --- .../java/uulm/teamname/marvelous/gamelibrary/IntVector2.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java index f5051bf..5282c65 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java @@ -110,6 +110,7 @@ public class IntVector2 implements Serializable { return dot(v.x, v.y); } + // TODO: This returns a new Vector for now, but should scale the actually modified vector public IntVector2 scale(float x, float y) { return new IntVector2(Math.round(this.x * x), Math.round(this.y * y)); }