More SDF tests
This commit is contained in:
parent
cf8955ea4b
commit
2e632bf245
13 changed files with 111 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue