equals3D method

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

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

Returns false if this or other is not a 3D position.

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.

The tolerance for vertical coordinate values (ie. z or elev) is given by an optional toleranceVert value.

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

Implementation

@override
bool equals3D(
  Position other, {
  num? toleranceHoriz,
  num? toleranceVert,
}) =>
    Position.testEquals3D(
      this,
      other,
      toleranceHoriz: toleranceHoriz,
      toleranceVert: toleranceVert,
    );