EndpointJoin

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

Indicates whether a line endpoint joins the area at an area vertex.

Line endpoint joins the area

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): true if the first or last vertex of line coincides with a vertex of area.
  • EndpointJoin(ReadOnlyLine, ReadOnlyPolygon): true if the first or last vertex of line coincides with a vertex of the outer ring or a hole, and Across(line, area) also returns false.

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.