mirror of
https://github.com/xdsopl/robot36.git
synced 2026-04-21 06:03:41 +00:00
insane but correct use of Complex
This commit is contained in:
parent
c2be865c5a
commit
38525c3187
1 changed files with 1 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue