Skip to main content

sinc

Function sinc 

Source
pub fn sinc<T: SignedNumber + Float, X: Base<T> + FloatOps<T> + SignedNumberOps<T>>(
    x: X,
    k: X,
) -> X
Expand description

returns a sin curve (y position on a graph for x); can be used for some bouncing behaviors. give k different integer values to tweak the amount of bounces