I will need to obtain the coordinate based on the divide coefficient(or point number) e.g., 3 -> [0, 0.5, 1], 5 -> [0, 0.25, 0.5, 0.75, 1]…assume the result is single float
the true situation might be like 10,000+.
My very naive solution is to generate the typical value into a data structure, and mostly we do the searching instead of calculate.
New contributor
Psychosocial is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3