Rename MathUtils to MathUtility

This commit is contained in:
Oliver Booth 2022-04-21 19:17:51 +01:00
parent ad36b915bc
commit ba7c88ccff
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
6 changed files with 25 additions and 25 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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.

View File

@ -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>