Edit

Share via


MathExtensions Class

Definition

Implementations of some functions missing in older .NET versions

C#
public static class MathExtensions
Inheritance
MathExtensions

Methods

Clamp(Byte, Byte, Byte)

Returns val, limited to the range min-max (inclusive)

Clamp(Double, Double, Double)

Returns val, limited to the range min-max (inclusive)

Clamp(Int32, Int32, Int32)

Returns val, limited to the range min-max (inclusive)

Clamp(Int64, Int64, Int64)

Returns val, limited to the range min-max (inclusive)

Clamp(UInt32, UInt32, UInt32)

Returns val, limited to the range min-max (inclusive)

Applies to

Product Versions
.NET IoT Libraries 1.5.0