def clamp
import stelliferous@0.0.2.0/math_compare.bend as MathCompareimport Base
67def clamp(bounds: Bounds,element: F32) -> F32:
68 Bounds{low,high} = bounds
69 F32.min(F32.max(element,low),high)
import stelliferous@0.0.2.0/math_compare.bend as MathCompareimport Base
67def clamp(bounds: Bounds,element: F32) -> F32:
68 Bounds{low,high} = bounds
69 F32.min(F32.max(element,low),high)