Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# map function

float Map(float s, float a1, float a2, float b1, float b2)
{
    return b1 + (s - a1) * (b2 - b1) / (a2 - a1);
}
Source by forum.unity.com #
 
PREVIOUS NEXT
Tagged: #map #function
ADD COMMENT
Topic
Name
8+4 =