Coincident
Namespace: Digi21.DigiNG.Entities.Relations
Assembly: Digi21.DigiNG
Indicates whether the point coincides with an area vertex.

public static bool Coincident(ReadOnlyPoint point, ReadOnlyLine area)
public static bool Coincident(ReadOnlyPoint point, ReadOnlyPolygon area)
| Parameter | Description |
|---|---|
point |
Point, of type ReadOnlyPoint. |
area |
Area: a closed ReadOnlyLine or a ReadOnlyPolygon. In the installed assembly, this parameter is named line or polygon. |
Return value
true if the point's coordinate coincides with an area vertex. With a ReadOnlyPolygon, the vertex can belong to the outer ring or a hole. The method returns false if the point lies on an area edge without coinciding with a vertex.
With a Point created in memory, the method always returns false; see the note in PointArea.
Exceptions
| Exception | When |
|---|---|
ArgumentNullException |
point or area is null. |
Example
See the PointArea example.