function SwapConstrain(const Value: Integer; Constrain1: Integer; Constrain2: Integer): Integer;
Returns Value constrained to [Min(Constrain1, Constrain2)..Max(Constrain1, Constrain2] range.
[See Also]: Swap, Constrain, Clamp