WLJS LogoWLJS Notebook

CollinearPoints

CollinearPoints[{p1, p2, p3, ..., pn}] tests whether the points p1, p2, p3, ..., pn are collinear.

Examples

Test if points are collinear:

CollinearPoints[{{0, 0}, {1, 1}, {2, 2}}]
(* True *)

Non-collinear points:

CollinearPoints[{{0, 0}, {1, 1}, {2, 3}}]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page