Class GMath
Math utility class for CoreLib (UnityEngine-independent).
Assembly: Glitch9.dll
Syntax
public static class GMath
Methods
|
Edit this page
View Source
Abs(float)
Declaration
public static float Abs(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns
|
Edit this page
View Source
Approximately(float, float, float)
Declaration
public static bool Approximately(float a, float b, float epsilon = 1E-06)
Parameters
Returns
|
Edit this page
View Source
CeilToInt(float)
Declaration
public static int CeilToInt(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns
|
Edit this page
View Source
Clamp(int, int, int)
Declaration
public static int Clamp(int value, int min, int max)
Parameters
| Type |
Name |
Description |
| int |
value |
|
| int |
min |
|
| int |
max |
|
Returns
|
Edit this page
View Source
Clamp(float, float, float)
Declaration
public static float Clamp(float value, float min, float max)
Parameters
Returns
|
Edit this page
View Source
Clamp01(float)
Declaration
public static float Clamp01(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns
|
Edit this page
View Source
FloorToInt(float)
Declaration
public static int FloorToInt(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns
|
Edit this page
View Source
InverseLerp(float, float, float)
Declaration
public static float InverseLerp(float a, float b, float value)
Parameters
Returns
|
Edit this page
View Source
IsBetween(float, float, float)
Declaration
public static bool IsBetween(float value, float min, float max)
Parameters
Returns
|
Edit this page
View Source
IsZero(float, float)
Declaration
public static bool IsZero(float value, float epsilon = 1E-06)
Parameters
Returns
|
Edit this page
View Source
Lerp(float, float, float)
Declaration
public static float Lerp(float a, float b, float t)
Parameters
Returns
|
Edit this page
View Source
Max(float, float)
Declaration
public static float Max(float a, float b)
Parameters
Returns
|
Edit this page
View Source
Min(float, float)
Declaration
public static float Min(float a, float b)
Parameters
Returns
|
Edit this page
View Source
Remap(float, float, float, float, float)
Declaration
public static float Remap(float inMin, float inMax, float outMin, float outMax, float value)
Parameters
Returns
|
Edit this page
View Source
RoundToInt(float)
Declaration
public static int RoundToInt(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns
|
Edit this page
View Source
Sign(float)
Declaration
public static int Sign(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns