1
0
Fork 0

Correction du bug de getBlock dans la class World

This commit is contained in:
MrDev023 2015-07-19 14:32:14 +02:00
parent 521e58acb9
commit 98b7946cc2
10 changed files with 405 additions and 121 deletions

View file

@ -189,6 +189,10 @@ public class Vector3f {
return this;
}
public String toString(){
return x + " " + y + " " + z;
}
public static float distance(Vector3f a,Vector3f b){
return (float)Math.sqrt((Math.pow(b.getX()-a.getX(), 2))+(Math.pow(b.getY()-a.getY(), 2))+(Math.pow(b.getZ()-a.getZ(), 2)));
}