Disjoint

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

Indicates whether the two lines are disjoint.

Line disjoint from another line

public static bool Disjoint(ReadOnlyLine a, ReadOnlyLine b)
Parameter Description
a First line, of type ReadOnlyLine.
b Second line.

Return value

true if the two lines' bounding boxes in the XY plane do not touch or if no vertex of a coincides with a vertex of b. Endpoints count as vertices.

Because only vertices are compared, two lines whose edges cross without a common vertex are disjoint.

Exceptions

Exception When
ArgumentNullException a or b is null.

Example

See the LineLine example.