refactor: dont pass matrices with MapPosition -> use GLRender.Matrices

This commit is contained in:
Hannes Janetzek
2013-02-15 16:56:13 +01:00
parent 811ff6ed4a
commit 55030c1166
17 changed files with 362 additions and 272 deletions

View File

@@ -65,7 +65,13 @@ public class FastMath {
return a2 < a1 ? a1 : a2;
}
// test if any absolute value is greater than 'cmp'
public static boolean absMaxCmp(float value1, float value2, float cmp){
return value1 < -cmp || value1 > cmp || value2 < -cmp || value2 > cmp;
}
// test if any absolute value is greater than 'cmp'
public static boolean absMaxCmp(int value1, int value2, int cmp){
return value1 < -cmp || value1 > cmp || value2 < -cmp || value2 > cmp;
}
}