eq

open fun eq(other: Segment2<*>, equivalence: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Boolean(source)

Checks if this segment is equal to another segment, considering the order of points irrelevant.

Return

True if the segments are equal (regardless of point order), false otherwise.

Parameters

other

The other segment to compare with.

equivalence

The equivalence to use for comparing floating-point values. Defaults to DEFAULT_DOUBLE_EQUIVALENCE.