Skip to content

Commit

Permalink
Change bezier implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed May 6, 2024
1 parent 0607d43 commit 7dc55f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tree/osc/bezier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ where

for (src, curve) in chunk.0.iter_mut().zip(curve.0.iter()) {
let sign = src.signum();
let mut output = -src.abs();
let old = -src.abs();
let output = old + 1.0;
let output = output * curve * old + old;

output += 1.0;
output = output + output * curve * (output - 1.0) - 1.0;
*src = output.copysign(sign);
}

Expand Down

0 comments on commit 7dc55f4

Please sign in to comment.