adding sub to vec2
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Debucquoy Anthony 2023-05-04 23:45:11 +02:00
parent 53972cd1ef
commit 5abb34da2e
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -31,6 +31,10 @@ public class Vec2 implements Serializable {
return new Vec2(x + o.x, y + o.y);
}
public Vec2 sub(Vec2 o){
return new Vec2(x - o.x, y - o.y);
}
@Override
public String toString() {
return "("+x+","+y+")";