mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-22 16:17:20 +00:00
fma
This commit is contained in:
1 parent
eb2468c8a5
commit
6d690d788b
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user