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.

Line joining another line

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 a coincides with an intermediate vertex of b.
  • The lines share no edge: no two consecutive vertices of a coincide with two consecutive vertices of b.
  • The lines do not cross at the first intermediate vertex of a coinciding with an intermediate vertex of b, 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.