NumericExtensions.Clamp 方法

定义

重载

Clamp(Double, Double, Double)

供 Xamarin.Forms 平台内部使用。

Clamp(Int32, Int32, Int32)

供 Xamarin.Forms 平台内部使用。

Clamp(Double, Double, Double)

供 Xamarin.Forms 平台内部使用。

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

参数

self
System.Double

供 Xamarin.Forms 平台内部使用。

min
System.Double

供 Xamarin.Forms 平台内部使用。

max
System.Double

供 Xamarin.Forms 平台内部使用。

返回

System.Double

供 Xamarin.Forms 平台内部使用。

适用于

Clamp(Int32, Int32, Int32)

供 Xamarin.Forms 平台内部使用。

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

参数

self
System.Int32

供 Xamarin.Forms 平台内部使用。

min
System.Int32

供 Xamarin.Forms 平台内部使用。

max
System.Int32

供 Xamarin.Forms 平台内部使用。

返回

System.Int32

供 Xamarin.Forms 平台内部使用。

适用于