Subdivides a straight line between two points into multiple points.
The starting point.
The ending point.
The number of segments to divide the line into.
An array of segments + 1 Points forming the line.
segments + 1
Subdivides a straight line between two points into multiple points.