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.
Parameters
Section titled “Parameters”linearTolerance?
Section titled “linearTolerance?”number = geometryConfig.defaultLinearTolerance
Distance, in the caller’s units, within which a point still counts as lying on the other line.
angularTolerance?
Section titled “angularTolerance?”number = geometryConfig.defaultAngularTolerance
Dimensionless residual on |dot| - 1, within which
two unit directions still count as collinear.
Returns
Section titled “Returns”boolean