EndpointJoin
Namespace: Digi21.DigiNG.Entities.Relations
Assembly: Digi21.DigiNG
Indicates whether a line endpoint joins the area at an area vertex.

public static bool EndpointJoin(ReadOnlyLine line, ReadOnlyLine area)
public static bool EndpointJoin(ReadOnlyLine line, ReadOnlyPolygon area)
| Parameter | Description |
|---|---|
line |
Line. |
area |
Area: a closed ReadOnlyLine or a ReadOnlyPolygon. |
Return value
EndpointJoin(ReadOnlyLine, ReadOnlyLine):trueif the first or last vertex oflinecoincides with a vertex ofarea.EndpointJoin(ReadOnlyLine, ReadOnlyPolygon):trueif the first or last vertex oflinecoincides with a vertex of the outer ring or a hole, and Across(line, area)also returnsfalse.
A line endpoint on an area edge without coinciding with a vertex does not count. The first overload does not analyze the rest of the line: the line can have vertices inside the area.
Exceptions
| Exception | When |
|---|---|
ArgumentNullException |
line or area is null. |
Example
See the LineArea example.