Skip to content

vlt.math.pts2line

  PTS2LINE - Create a 2D line from 2 points

  [M,B] = vlt.math.pts2line(X1Y1, X2Y2)

  Returns slope (M) and offset (B) of a line through 2 2-d points.

  See also: vlt.math.ptontoline