Cleanup / Functioning formation
@@ -94,6 +94,12 @@ public class Vec2 implements Vector<Vec2>, Position{
return this;
}
+ public Vec2 set(Vec3 other){
+ this.x = other.x;
+ this.y = other.y;
+ return this;
+ }
+
public Vec2 sub(Position v){
return sub(v.getX(), v.getY());
}
@@ -117,6 +123,10 @@ public class Vec2 implements Vector<Vec2>, Position{
return this;
}
+ public Vec2 sub(Vec3 v){
+ return sub(v.x, v.y);
+ }
+
@Override
public Vec2 nor(){
float len = len();
