Equal

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

Indicates whether the two lines are equal.

Line equal to another line

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

Return value

true if the two lines have the same number of vertices and each vertex of a coincides with the vertex of b in the same position, traversing b in the same or opposite direction.

The method does not allow a different starting vertex: two closed lines with the same outline starting at different vertices are not equal. To compare closed outlines with any starting vertex, use AreaArea.Equal. The Z coordinate, codes and attributes are not compared.

Exceptions

Exception When
ArgumentNullException a or b is null.

Example

See the LineLine example.