Table of Contents

Method MinMax

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

MinMax(IEnumerable<float>)

Finds the minimum and maximum values in a collection of floats.

[Version(3, 0, 0)]
public static (float, float) MinMax(this IEnumerable<float> source)

Parameters

source IEnumerable<float>

The source collection to find the minimum and maximum values in.

Returns

(float, float)

A tuple containing the minimum and maximum values.

MinMax(IEnumerable<int>)

Finds the minimum and maximum values in a collection of integers.

[Version(3, 0, 0)]
public static (int, int) MinMax(this IEnumerable<int> source)

Parameters

source IEnumerable<int>

The source collection to find the minimum and maximum values in.

Returns

(int, int)

A tuple containing the minimum and maximum values.