clampDouble

open fun clampDouble(min: Double, max: Double, input: Double): Double

Clamps an integer between two floating-point numbers.

Return

input when min <= input <= max, and either min or max otherwise.