1
0
Fork 0

Refactoring and add travis ant compilation

This commit is contained in:
MrDev023 2016-09-17 18:09:21 +02:00
parent c2e793be12
commit 0b9fb6e127
68 changed files with 383 additions and 400 deletions

View file

@ -0,0 +1,41 @@
package mrdev023.math;
import java.util.*;
public class Vector2f {
public float x,y;
public Vector2f(){
x = 0;
y = 0;
}
public Vector2f(float x,float y){
this.x = x;
this.y = y;
}
public float getX() {
return x;
}
public void setX(float x) {
this.x = x;
}
public float getY() {
return y;
}
public void setY(float y) {
this.y = y;
}
public String toString(){
StringJoiner st = new StringJoiner(",","vec2(",")");
st.add("" + x);
st.add("" + y);
return st.toString();
}
}