Table of Contents

Class MathUtilities

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Contains extended functionality for mathematic operations.

public static class MathUtilities
Inheritance
MathUtilities

Methods

Clamp(double, double, double)

Clamps given value between specified dimensions.

Clamp(int, int, int)

Clamps given value between specified dimensions.

IndexOfMax(params double[])

Searches for the largest value and returns the index of its occurrence in a one-dimensional array.

IndexOfMin(params double[])

Searches for the smallest value and returns the index of its occurrence in a one-dimensional array.

IsCloseTo(double, double, double)

Indicates whether two given values are close to each other.

Max(params double[])

Returns the largest of double values in a one-dimensional array.

Max(params int[])

Returns the largest of integer values in a one-dimensional array.

Min(params double[])

Returns the smaller of double values in a one-dimensional array.

Min(params int[])

Returns the smaller of integer values in a one-dimensional array.

Wrap(int, int, int)

Wraps given value into specified interval.