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
- geometry3d/PolylineOps.ts Line 370
Last Updated: 07 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.