Generates a new array of points by dividing every pair of points by segments number.
The array of points to be divided.
The number of new segments between the two points from the array.
The new array of points by dividing every pair of points by segments number.
Generates a new array of points by dividing every pair of points by segments number.