java lerp 1

java lerp

float lerp(float point1, float point2, float alpha){    return point1 + alpha * (point2 - point1);}

Here is what the above code is Doing:
1. We’re creating a function called lerp that takes three parameters: point1, point2, and alpha.
2. We’re returning the value of point1 + alpha * (point2 – point1).

Similar Posts