다음을 통해 공유


Math.Clamp Method

Definition

Overloads

Clamp(Double, Double, Double)
Clamp(Int64, Int32, Int32)
Clamp(Int64, Int64, Int64)
Clamp(Single, Single, Single)

Clamp(Double, Double, Double)

[Android.Runtime.Register("clamp", "(DDD)D", "", ApiSince=35)]
public static double Clamp (double value, double min, double max);
[<Android.Runtime.Register("clamp", "(DDD)D", "", ApiSince=35)>]
static member Clamp : double * double * double -> double

Parameters

value
Double
min
Double
max
Double

Returns

Attributes

Applies to

Clamp(Int64, Int32, Int32)

[Android.Runtime.Register("clamp", "(JII)I", "", ApiSince=35)]
public static int Clamp (long value, int min, int max);
[<Android.Runtime.Register("clamp", "(JII)I", "", ApiSince=35)>]
static member Clamp : int64 * int * int -> int

Parameters

value
Int64
min
Int32
max
Int32

Returns

Attributes

Applies to

Clamp(Int64, Int64, Int64)

[Android.Runtime.Register("clamp", "(JJJ)J", "", ApiSince=35)]
public static long Clamp (long value, long min, long max);
[<Android.Runtime.Register("clamp", "(JJJ)J", "", ApiSince=35)>]
static member Clamp : int64 * int64 * int64 -> int64

Parameters

value
Int64
min
Int64
max
Int64

Returns

Attributes

Applies to

Clamp(Single, Single, Single)

[Android.Runtime.Register("clamp", "(FFF)F", "", ApiSince=35)]
public static float Clamp (float value, float min, float max);
[<Android.Runtime.Register("clamp", "(FFF)F", "", ApiSince=35)>]
static member Clamp : single * single * single -> single

Parameters

value
Single
min
Single
max
Single

Returns

Attributes

Applies to