Some SDF functions

This commit is contained in:
paulevsGitch 2020-09-28 20:31:10 +03:00
parent c633fe8549
commit 17663dac02
12 changed files with 197 additions and 0 deletions

View file

@ -60,4 +60,16 @@ public class MHelper {
public static int max(int a, int b) {
return a > b ? a : b;
}
public static float min(float a, float b) {
return a < b ? a : b;
}
public static float max(float a, float b) {
return a > b ? a : b;
}
public static float length(float x, float y, float z) {
return (float) Math.sqrt(x * x + y * y + z * z);
}
}