Overlap

Namespace: Digi21.DigiNG.Entities.Relations
Assembly: Digi21.DigiNG

Indicates whether the two lines overlap: they share at least one edge.

Line overlapping another line

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 a coincide with two consecutive vertices of b, 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.