mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 05:15:43 +00:00
Rename MathUtils to MathUtility
This commit is contained in:
parent
ad36b915bc
commit
ba7c88ccff
@ -62,7 +62,7 @@ public static class DoubleExtensions
|
||||
/// </returns>
|
||||
public static double LerpFrom(this double target, double value, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -76,7 +76,7 @@ public static class DoubleExtensions
|
||||
/// </returns>
|
||||
public static double LerpTo(this double value, double target, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -90,7 +90,7 @@ public static class DoubleExtensions
|
||||
/// </returns>
|
||||
public static double LerpWith(this double alpha, double value, double target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -118,7 +118,7 @@ public static class Int16Extensions
|
||||
/// </returns>
|
||||
public static double LerpFrom(this short target, double value, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -132,7 +132,7 @@ public static class Int16Extensions
|
||||
/// </returns>
|
||||
public static float LerpFrom(this short target, float value, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -146,7 +146,7 @@ public static class Int16Extensions
|
||||
/// </returns>
|
||||
public static double LerpTo(this short value, double target, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -160,7 +160,7 @@ public static class Int16Extensions
|
||||
/// </returns>
|
||||
public static float LerpTo(this short value, float target, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -174,7 +174,7 @@ public static class Int16Extensions
|
||||
/// </returns>
|
||||
public static double LerpWith(this short alpha, double value, double target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -188,7 +188,7 @@ public static class Int16Extensions
|
||||
/// </returns>
|
||||
public static float LerpWith(this short alpha, float value, float target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -170,7 +170,7 @@ public static class Int32Extensions
|
||||
/// </returns>
|
||||
public static double LerpFrom(this int target, double value, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -184,7 +184,7 @@ public static class Int32Extensions
|
||||
/// </returns>
|
||||
public static float LerpFrom(this int target, float value, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -198,7 +198,7 @@ public static class Int32Extensions
|
||||
/// </returns>
|
||||
public static double LerpTo(this int value, double target, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -212,7 +212,7 @@ public static class Int32Extensions
|
||||
/// </returns>
|
||||
public static float LerpTo(this int value, float target, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -226,7 +226,7 @@ public static class Int32Extensions
|
||||
/// </returns>
|
||||
public static double LerpWith(this int alpha, double value, double target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -240,7 +240,7 @@ public static class Int32Extensions
|
||||
/// </returns>
|
||||
public static float LerpWith(this int alpha, float value, float target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -143,7 +143,7 @@ public static class Int64Extensions
|
||||
/// </returns>
|
||||
public static double LerpFrom(this long target, double value, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -157,7 +157,7 @@ public static class Int64Extensions
|
||||
/// </returns>
|
||||
public static float LerpFrom(this long target, float value, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -171,7 +171,7 @@ public static class Int64Extensions
|
||||
/// </returns>
|
||||
public static double LerpTo(this long value, double target, double alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -185,7 +185,7 @@ public static class Int64Extensions
|
||||
/// </returns>
|
||||
public static float LerpTo(this long value, float target, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -199,7 +199,7 @@ public static class Int64Extensions
|
||||
/// </returns>
|
||||
public static double LerpWith(this long alpha, double value, double target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -213,7 +213,7 @@ public static class Int64Extensions
|
||||
/// </returns>
|
||||
public static float LerpWith(this long alpha, float value, float target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -3,7 +3,7 @@
|
||||
/// <summary>
|
||||
/// Provides static helpers methods for mathematical functions not found in the .NET <see cref="System.Math" /> class.
|
||||
/// </summary>
|
||||
public static class MathUtils
|
||||
public static class MathUtility
|
||||
{
|
||||
/// <summary>
|
||||
/// Linearly interpolates from one value to a target using a specified alpha.
|
@ -62,7 +62,7 @@ public static class SingleExtensions
|
||||
/// </returns>
|
||||
public static float LerpFrom(this float target, float value, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -76,7 +76,7 @@ public static class SingleExtensions
|
||||
/// </returns>
|
||||
public static float LerpTo(this float value, float target, float alpha)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -90,7 +90,7 @@ public static class SingleExtensions
|
||||
/// </returns>
|
||||
public static float LerpWith(this float alpha, float value, float target)
|
||||
{
|
||||
return MathUtils.Lerp(value, target, alpha);
|
||||
return MathUtility.Lerp(value, target, alpha);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user