Get value between 2 point based on percentage
Both points are float values and point A could be any numbers from 0.0 to 1.0, point B is a fixed value if this helps. now i want to find the value between point A and Point B by a given percentage.
here is what i currently do when point A starts from 0.0 :
EDIT for clarification :
Use Lerp (linear interpolation)
Or you can code your formula by hand
answered Oct 25 '18 at 10:59 AM
Let's establish some basic premise:
A=0%= Vector 0,0,0
Input =0.8=Expected Vector 16,16,16
B*Input = 20,20,20*0.8 = 16,16,16.
So your formula is: B*Input
Follow this question
Once you sign in you will be able to subscribe for any updates here