insane but correct use of Complex

This commit is contained in:
Ahmet Inan 2024-04-15 15:02:10 +02:00
parent c2be865c5a
commit 38525c3187

View file

@ -15,7 +15,6 @@ public class Phasor {
delta = new Complex((float) Math.cos(omega), (float) Math.sin(omega));
}
Complex rotate() {
value.mul(delta);
return value.div(value.abs());
return value.div(value.mul(delta).abs());
}
}