Fixes and splines

This commit is contained in:
paulevsGitch 2020-09-29 13:11:28 +03:00
parent c638a20ae6
commit 64614bc487
6 changed files with 99 additions and 14 deletions

View file

@ -37,7 +37,7 @@ public class SDFCapedCone extends SDFPrimitive {
@Override
public float getDistance(float x, float y, float z) {
float qx = MHelper.length(x, z);;
float qx = MHelper.length(x, z);
float k2x = radius2 - radius1;
float k2y = 2 * height;
float cax = qx - MHelper.min(qx, (y < 0F) ? radius1 : radius2);