![]() Here are a couple of examples to further clarify the expected behavior of the function. ![]() progress = 0-1 progress range 0 = from value 1 = to value.įunction angle_lerp(from, to, direction, progress) direction = wether to reach "to" clock or counter clock wise I'd like to have a function like: // from = angle where to start Most implementations I found rely on the shortest path possible, for example: I'm trying to find an implementation of angle lerp (linear interpolation) that allows you to specify direction (clock or counter-clockwise).
0 Comments
Leave a Reply. |