Class MinMaxExtensions
Inheritance
System.Object
MinMaxExtensions
Assembly: cs.temp.dll.dll
Syntax
public static class MinMaxExtensions
Methods
Clamp(MinMaxFloat, Single)
Clamp value between MinMax values
Declaration
public static float Clamp(this MinMaxFloat minMax, float value)
Parameters
| Type |
Name |
Description |
| MinMaxFloat |
minMax |
|
| System.Single |
value |
|
Returns
| Type |
Description |
| System.Single |
|
Clamp(MinMaxInt, Int32)
Clamp value between MinMax values
Declaration
public static int Clamp(this MinMaxInt minMax, int value)
Parameters
| Type |
Name |
Description |
| MinMaxInt |
minMax |
|
| System.Int32 |
value |
|
Returns
| Type |
Description |
| System.Int32 |
|
Length(MinMaxFloat)
Declaration
public static float Length(this MinMaxFloat minMax)
Parameters
Returns
| Type |
Description |
| System.Single |
|
Length(MinMaxInt)
Declaration
public static int Length(this MinMaxInt minMax)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
Lerp(MinMaxFloat, Single)
Declaration
public static float Lerp(this MinMaxFloat minMax, float value)
Parameters
| Type |
Name |
Description |
| MinMaxFloat |
minMax |
|
| System.Single |
value |
|
Returns
| Type |
Description |
| System.Single |
|
LerpUnclamped(MinMaxFloat, Single)
Declaration
public static float LerpUnclamped(this MinMaxFloat minMax, float value)
Parameters
| Type |
Name |
Description |
| MinMaxFloat |
minMax |
|
| System.Single |
value |
|
Returns
| Type |
Description |
| System.Single |
|
MidPoint(MinMaxFloat)
Point between Min and Max
Declaration
public static float MidPoint(this MinMaxFloat minMax)
Parameters
Returns
| Type |
Description |
| System.Single |
|
MidPoint(MinMaxInt)
Point between Min and Max
Declaration
public static int MidPoint(this MinMaxInt minMax)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|