Share via


NumericExtensions.Clamp Method

Definition

Overloads

Clamp(Double, Double, Double)

For internal use by the Xamarin.Forms platform.

Clamp(Int32, Int32, Int32)

For internal use by the Xamarin.Forms platform.

Clamp(Double, Double, Double)

For internal use by the Xamarin.Forms platform.

public static double Clamp (this double self, double min, double max);
static member Clamp : double * double * double -> double

Parameters

self
System.Double

For internal use by the Xamarin.Forms platform.

min
System.Double

For internal use by the Xamarin.Forms platform.

max
System.Double

For internal use by the Xamarin.Forms platform.

Returns

System.Double

For internal use by the Xamarin.Forms platform.

Applies to

Clamp(Int32, Int32, Int32)

For internal use by the Xamarin.Forms platform.

public static int Clamp (this int self, int min, int max);
static member Clamp : int * int * int -> int

Parameters

self
System.Int32

For internal use by the Xamarin.Forms platform.

min
System.Int32

For internal use by the Xamarin.Forms platform.

max
System.Int32

For internal use by the Xamarin.Forms platform.

Returns

System.Int32

For internal use by the Xamarin.Forms platform.

Applies to