GLMathfWlerp01 Method |
Namespace: Gamelogic.Extensions
public static float Wlerp01( float v1, float v2, float t )
float angleInRad1 = 1; float angleInRad2 = 5; float revolution = Mathf.PI * 2; float interpolation = WLerp(angleInRad1 / revolution, angleInRad2 / revolution, 0.5f); //interpolation == (5 + 1 + Mathf.PI * 2)/2 = 3 + Mathf.PI