Overlap
Namespace: Digi21.DigiNG.Entities.Relations
Assembly: Digi21.DigiNG
Indicates whether the two lines overlap: they share at least one edge.

public static bool Overlap(ReadOnlyLine a, ReadOnlyLine b)
| Parameter | Description |
|---|---|
a |
First line, of type ReadOnlyLine. |
b |
Second line. |
Return value
true if both conditions are met:
- Two consecutive vertices of
acoincide with two consecutive vertices ofb, in either direction. - The two lines are not equal according to Equal.
For each vertex of a, only the first coincident vertex of b is sought. A common section that does not start and end at vertices of both lines is not detected.
Exceptions
| Exception | When |
|---|---|
ArgumentNullException |
a or b is null. |