fix it again (last change was mostly a mistake)

This commit is contained in:
Alain Zscheile 2023-12-08 00:27:38 +01:00
parent a588ef94d4
commit 32b55ed344

View file

@ -144,7 +144,7 @@ pub fn spiral(k: u32) -> impl Fn(f64) -> [f64; 2] {
let x2pi = (k as f64) * core::f64::consts::TAU;
move |t: f64| {
let tstretch = t - 0.5;
let tstretch = tstretch.abs();
let tstretch = tstretch * tstretch;
let (ttxsin, ttxcos) = (t * x2pi).sin_cos();
[tstretch * ttxcos, tstretch * ttxsin]
}