SwapConstrain

function SwapConstrain(const Value: Integer; Constrain1: Integer; Constrain2: Integer): Integer;

Description

Returns Value constrained to [Min(Constrain1, Constrain2)..Max(Constrain1, Constrain2] range.

See Also

Clamp, Constrain, Swap