csharp clamp

Code Example - csharp clamp

                
                        x = Math.Min(Math.Max(x, a), b);