Class MathHelper
Inheritance
System.Object
MathHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Inferno.Desktop.dll
Syntax
public static class MathHelper
Methods
|
Improve this Doc
View Source
Clamp(Int32, Int32, Int32)
Declaration
public static int Clamp(int value, int min, int max)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
System.Int32 |
min |
|
System.Int32 |
max |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Clamp(Single, Single, Single)
Declaration
public static float Clamp(float value, float min, float max)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
System.Single |
min |
|
System.Single |
max |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Distance(Single, Single)
Declaration
public static float Distance(float value1, float value2)
Parameters
Type |
Name |
Description |
System.Single |
value1 |
|
System.Single |
value2 |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Lerp(Single, Single, Single)
Declaration
public static float Lerp(float value1, float value2, float amount)
Parameters
Type |
Name |
Description |
System.Single |
value1 |
|
System.Single |
value2 |
|
System.Single |
amount |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
LerpPrecise(Single, Single, Single)
Declaration
public static float LerpPrecise(float value1, float value2, float amount)
Parameters
Type |
Name |
Description |
System.Single |
value1 |
|
System.Single |
value2 |
|
System.Single |
amount |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
NearestMultiple(Double, Double)
Declaration
public static double NearestMultiple(double number, double multiple)
Parameters
Type |
Name |
Description |
System.Double |
number |
|
System.Double |
multiple |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
NearestMultiple(Int32, Int32)
Declaration
public static int NearestMultiple(int number, int multiple)
Parameters
Type |
Name |
Description |
System.Int32 |
number |
|
System.Int32 |
multiple |
|
Returns
Type |
Description |
System.Int32 |
|