def clamp

stelliferous@0.0.2.0 · math_compare.bend:67

import stelliferous@0.0.2.0/math_compare.bend as MathCompare
import Base

67def clamp(bounds: Bounds,element: F32) -> F32:
68  Bounds{low,high} = bounds
69  F32.min(F32.max(element,low),high)

Uses (4)

Used by (1)