def rope_ang

bendtorch@1.3.0.0 · main.bend:2271

import bendtorch@1.3.0.0/main.bend as Bendtorch
import Base

2271# the angle of table entry e: inv[c] * position, position e / half, c = e mod half, inv[c] = 1 / base^(2c / (2*half))
2272def rope_ang(+e: U32, +half: U32, +base: F32) -> F32:
2273  ((1.0 / F32.pow(base, (U32.to_f32((U32.mod(e, half) + U32.mod(e, half) : U32)) / U32.to_f32((half + half : U32)) : F32)) : F32) * U32.to_f32(U32.div(e, half)) : F32)

Uses (9)

Used by (1)