More SDF tests

This commit is contained in:
paulevsGitch 2020-09-29 01:01:42 +03:00
parent cf8955ea4b
commit 2e632bf245
13 changed files with 111 additions and 22 deletions

View file

@ -72,4 +72,8 @@ public class MHelper {
public static float length(float x, float y, float z) {
return (float) Math.sqrt(x * x + y * y + z * z);
}
public static float dot(float x1, float y1, float z1, float x2, float y2, float z2) {
return x1 * x2 + y1 * y2 + z1 * z2;
}
}