ISPOINTONLINE Test if a point belongs to a line. B = isPointOnLine(POINT, LINE) with POINT being [xp yp], and LINE being [x0 y0 dx dy]. Returns 1 if point lies on the line, 0 otherwise. If POINT is an N-by-2 array of points, B is a N-by-1 array of booleans. If LINE is a N-by-4 array of line, B is a 1-by-N array of booleans. B = isPointOnLine(POINT, LINE, TOL) Specifies the tolerance used for testing location on 3D line. Default value is 1e-14. See also: lines2d, points2d, isPointOnEdge, isPointOnRay, isLeftOriented
Package: matgeom