Table of Contents

Method IsSameLineAs

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

IsSameLineAs(GeoXLine3)

Checks whether another line is the same infinite line as this one, using the default tolerance.

public bool IsSameLineAs(GeoXLine3 other)

Parameters

other GeoXLine3

Returns

bool

IsSameLineAs(GeoXLine3, Tolerance)

Checks whether another line is the same infinite line as this one, whatever its origin and its direction, within a tolerance.

public bool IsSameLineAs(GeoXLine3 other, Tolerance tolerance)

Parameters

other GeoXLine3

The other line.

tolerance Tolerance

The tolerance: the directions must be the same or opposite within the vector tolerance, and each origin within the point tolerance of the other line.

Returns

bool

Remarks

Stricter than IsParallelTo(GeoXLine3, Tolerance), which reads a degree as parallel: a line has no length to measure a drift over, so the directions are held to the vector tolerance. The line from the origin along X is the same line as the one from (500, 0, 0) along -X and as the one from (-20, 0.0004, 0) along X at a tolerance of a thousandth; it is not the one from (0, 0, 0.002) along X, nor the one from the origin along (1, 0.01, 0).