You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nydaliv/Assets/Scripts/Utilities/Extensions.cs

8 lines
265 B

namespace Exsersewo.Nydaliv.Extensions
{
public static class Extensions
{
public static float Remap(this float value, float min1, float max1, float min2, float max2)
=> min2 + (max2 - min2) * ((value - min1) / (max1 - min1));
}
}