Big Tony
BigTony.Utility.MathArray Class Reference

Static Public Member Functions

static float[] Clamp (float[] input, float min, float max)
 Clamp a series of floating-point numbers between a maximum and minimum amount. More...
 
static float Min (float[] input)
 Get the lowest value of a floating-point data set. If the dataset's length is 0, then float.MaxValue will be returned. More...
 
static float Max (float[] input)
 Get the highest value of a floating-point data set. If the dataset's length is 0, then float.MinValue will be returned. More...
 
static float[] Abs (float[] input)
 Get the absolute value of a set of floating-point data. More...
 

Member Function Documentation

◆ Abs()

static float [] BigTony.Utility.MathArray.Abs ( float[]  input)
inlinestatic

Get the absolute value of a set of floating-point data.

Parameters
inputThe floating-point data to get the absolute value of.
Returns
The absolute value of the floating-point data inputted.

◆ Clamp()

static float [] BigTony.Utility.MathArray.Clamp ( float[]  input,
float  min,
float  max 
)
inlinestatic

Clamp a series of floating-point numbers between a maximum and minimum amount.

Parameters
inputThe values that need to be clamped.
minThe minimum amount that the values of 'input' can be.
maxThe maximum amount that the values of 'input' can be.
Returns
The clamped values of 'input' between 'min' and 'max'.

◆ Max()

static float BigTony.Utility.MathArray.Max ( float[]  input)
inlinestatic

Get the highest value of a floating-point data set. If the dataset's length is 0, then float.MinValue will be returned.

Parameters
inputA floating-point dataset in the form of an array.
Returns
The highest value of the floating-point data set.

◆ Min()

static float BigTony.Utility.MathArray.Min ( float[]  input)
inlinestatic

Get the lowest value of a floating-point data set. If the dataset's length is 0, then float.MaxValue will be returned.

Parameters
inputA floating-point dataset in the form of an array.
Returns
The lowest value of the floating-point data set.