clamp

compas_fab.utilities.clamp(value, min_value, max_value)[source]

Clamps a value within the bound [min_value, max_value]

Returns

float