Reference clamp()

clamp()

A private function used to constrain values to a range and prevent boundary violations.

Related References