cycle

open fun cycle(x: Float, min: Float, max: Float): Float

Cycle within range Restricts a value to a cycling range, produces a seesaw.

Return

"seesaw" value that cycles within the (min,max) range

Parameters

x

Float

min

cycle minimal value

max

cycle maximal value