mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-04 06:46:21 +00:00
fma
This commit is contained in:
@@ -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