fix erroneous Normalize
parent
d3e124cea1
commit
3543f074f4
|
@ -341,7 +341,7 @@ namespace MoonWorks.Math
|
|||
/// </summary>
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue