EndpointJoinEndpoint

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

Indicates whether the two lines join at an endpoint.

Lines joined at their endpoints

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

Return value

true if both conditions are met:

  • The first or last vertex of a coincides with the first or last vertex of b.
  • The two lines are not equal according to Equal.

The remaining vertices are not analyzed: the lines may also share edges or intermediate vertices.

Exceptions

Exception When
ArgumentNullException a or b is null.

Example

See the LineLine example.