Calculates the slope and y-intercept of a line passing through two points.
The first point.
The second point.
An array containing the slope and y-intercept.
Calculates the slope and y-intercept of a line passing through two points.