repeat

open fun repeat(t: Double, length: Double): Double
open fun repeat(t: Float, length: Float): Float

Loops the value t, so that it is never larger than length and never smaller than 0.

Return

The looped value.

Parameters

t

The value to loop.

length

The length of the loop.