Function AstarMath.MapTo

MapTo (float startMin, float startMax, float targetMin, float targetMax, float value)

Maps a value between startMin and startMax to be between targetMin and targetMax.

Public Static
float MapTo (

float

startMin

float

startMax

float

targetMin

float

targetMax

float

value

)

Maps a value between startMin and startMax to be between targetMin and targetMax.