Join
Namespace: Digi21.DigiNG.Entities.Relations
Assembly: Digi21.DigiNG
Indicates whether the two lines touch at a common intermediate vertex without sharing edges or crossing.

public static bool Join(ReadOnlyLine a, ReadOnlyLine b)
| Parameter | Description |
|---|---|
a |
First line, of type ReadOnlyLine. |
b |
Second line. |
Return value
true if all three conditions are met:
- An intermediate vertex of
acoincides with an intermediate vertex ofb. - The lines share no edge: no two consecutive vertices of
acoincide with two consecutive vertices ofb. - The lines do not cross at the first intermediate vertex of
acoinciding with an intermediate vertex ofb, using the criterion of Across. Other common vertices are not analyzed.
If the lines only coincide at their endpoints, the method returns false; use EndpointJoinEndpoint or EndpointJoinExcludingEndpoints for that case.
Exceptions
| Exception | When |
|---|---|
ArgumentNullException |
a or b is null. |