I know that to calculate the average position you just need to loop through points add their position together and divide by the amount of points but how can I have a wight per point so it does not have so much influence on the average calculation.
For example I have 3 points and I want to calculate the average position for all of them but I wand point 2 to have 0.5 weight on the influence for this calculation, I hope it makes sense.
I am not very good at math so I need help on this one.
Thanks in advance.