fix erroneous Normalize

main
cosmonaut 2022-07-12 16:06:13 -07:00
parent d3e124cea1
commit 3543f074f4
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ namespace MoonWorks.Math
/// </summary> /// </summary>
public static float Normalize(short value, short min, short max, short newMin, short newMax) public static float Normalize(short value, short min, short max, short newMin, short newMax)
{ {
return ((value - min) * (newMax - newMin)) / (max - min) + newMin; return ((float) (value - min) * (newMax - newMin)) / (max - min) + newMin;
} }
/// <summary> /// <summary>