cogwheel.utils.mod

cogwheel.utils.mod(value, start=0, period=6.283185307179586)

Modulus operation, but allows to specify the domain of the output.