MathHelperMedianT Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets the median from the specified values.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static T Median<T>(
	params T[] values
)

Parameters

values
Type: T
The values to get the median from.

Type Parameters

T
The type of the values specified.

Return Value

Type: T
If the specified array has at least 1 value, returns the median; otherwise, returns the default value of [!:T].
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown if values is null.
See Also

Reference