isColinear MethodStatic

Checks if all points are colinear.

  • This test does not take point order into account.

isColinear(points: Point3d[], distanceTol: numberGeometry.smallMetricDistance, xyOnly: booleanfalse): boolean

Parameter Type Description
points Point3d[] array of points to check.
distanceTol number maximum allowable distance that geometry can deviate from colinearity.Default is smallMetricDistance.
xyOnly boolean whether to ignore z-coordinates in the colinearity test.

Returns - boolean

Defined in

Last Updated: 07 October, 2025