EDGETOLINE Convert an edge to a straight line. LINE = edgeToLine(EDGE); Returns the straight line containing the edge EDGE. EDGE is represented as [X1 Y1 X2 Y2] LINE is represented as [X0 Y0 DX DY] Example edge = [2 3 4 5]; line = edgeToLine(edge); figure(1); hold on; axis([0 10 0 10]); drawLine(line, 'color', 'g') drawEdge(edge, 'linewidth', 2) See also edges2d, lines2d, lineToEdge
Package: matgeom