I'd like to know which formula am I supposed to use in order to distribute n points along a line so they are uniformly distribute.
Note: length/2 <= n > 0
The distance between the points have to be the same, so:
For length = 10, points = 1: ----0-----
For length = 10, points = 2: --0----0--
For length = 10, points = 3: -0--0--0-- (Note how you always "start" by the left, if you started from the right, it'd be like this: --0--0--0-)
For length = 10, points = 5: 0-0-0-0-0-0
For length = 10, points 7: It's not possible, 7 is bigger than length/2