This commit is contained in:
Zoë Gidiere
2023-10-05 22:00:10 -06:00
parent eb2468c8a5
commit 6d690d788b

View File

@@ -325,7 +325,7 @@ public class PseudoErosionSampler implements NoiseSampler {
double x2dx = x - x2;
double y2dx = y - y2;
double dotProduct = ldy * y1dx + ldx * x1dx;
double dotProduct = Math.fma(ldy, y1dx, (ldx * x1dx));
double lt = dotProduct / (ldySquared + ldxSquared); // Position along the line
if (lt > 0) {