doc: added TODO comment for scaling vectors

This commit is contained in:
Yannik Bretschneider 2021-08-07 14:41:29 +02:00
parent 6ab818b155
commit fbe38c978a

View File

@ -110,6 +110,7 @@ public class IntVector2 implements Serializable {
return dot(v.x, v.y); 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) { public IntVector2 scale(float x, float y) {
return new IntVector2(Math.round(this.x * x), Math.round(this.y * y)); return new IntVector2(Math.round(this.x * x), Math.round(this.y * y));
} }