Returns intercept and slope of a line given two pairs of coordinates on the line. Arguments can be vectors; if both are vectors, must be same size.
If the x's are exactly equal, so slope is infinite, it returns the x as the first argument.
1 | pts.to.interceptslope(pt1, pt2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.