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
Double

For internal use by the Xamarin.Forms platform.

min
Double

For internal use by the Xamarin.Forms platform.

max
Double

For internal use by the Xamarin.Forms platform.

Returns

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
Int32

For internal use by the Xamarin.Forms platform.

min
Int32

For internal use by the Xamarin.Forms platform.

max
Int32

For internal use by the Xamarin.Forms platform.

Returns

Int32

For internal use by the Xamarin.Forms platform.

Applies to