Table of Contents

Method IsEqualTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

IsEqualTo(GeoLine2)

Determines whether another segment runs between the same points, within the default tolerance.

public bool IsEqualTo(GeoLine2 other)

Parameters

other GeoLine2

Returns

bool

IsEqualTo(GeoLine2, Tolerance)

Determines whether another segment runs between the same points, within a tolerance.

public bool IsEqualTo(GeoLine2 other, Tolerance tolerance)

Parameters

other GeoLine2

The segment to compare with.

tolerance Tolerance

The tolerance.

Returns

bool

true if the segments are the same within tolerance; otherwise, false.

Remarks

A segment and the same segment reversed are not equal: which way it runs is part of it, as it is for a chain and for an arc. Compare against other.Reverse() when either direction will do.