Skip to content

line2Equals

line2Equals(a, b, linearTolerance?, angularTolerance?): boolean

Defined in: line2.ts:60

Whether a and b are the same infinite line, within tolerance.

Tolerant rather than exact: the same line can be built from any point on it and any scaling of its direction, so exact component equality would answer a question nobody is asking. Directions are compared through their normalised dot product, and opposite directions denote the same line.

Line2

Line2

number = geometryConfig.defaultLinearTolerance

Distance, in the caller’s units, within which a point still counts as lying on the other line.

number = geometryConfig.defaultAngularTolerance

Dimensionless residual on |dot| - 1, within which two unit directions still count as collinear.

boolean