equals2D method

  1. @override
bool equals2D(
  1. Position other, {
  2. num? toleranceHoriz,
})
override

True if this position equals with other by testing 2D coordinates only.

If toleranceHoriz is given, then differences on 2D coordinate values (ie. x and y, or lon and lat) between this and other must be within tolerance. Otherwise value must be exactly same.

Tolerance values must be null or positive (>= 0).

Implementation

@override
bool equals2D(Position other, {num? toleranceHoriz}) =>
    Position.testEquals2D(this, other, toleranceHoriz: toleranceHoriz);