gradient-angle: Add inverseLerp function.