wrap

Normalizes the given angle to be within the range of [0, 2pi) radians or [0, 360) degrees.

Return

The normalized angle.


fun Number.wrap(minimumInput: Number, maximumInput: Number): Double

Returns modulus of input.

Return

The wrapped value.

Parameters

minimumInput

The minimum value expected from the input.

maximumInput

The maximum value expected from the input.


Returns modulus of input.

Return

The wrapped value.

Parameters

range

The range of the input.