equals3D method
bool
equals3D(
- covariant Geometry other, {
- double toleranceHoriz = defaultEpsilon,
- double toleranceVert = defaultEpsilon,
override
True if this and other
equals by testing 3D coordinate values of all
position data (that must be in same order in both objects) contained
directly or by child objects.
Returns false if this and other
are not of the same subtype.
Returns false if this or other
contain "empty geometry".
Returns false if this or other
do not contain 3D coordinates.
Differences on 2D coordinate values (ie. x and y, or lon and lat) between
this and other
must be within toleranceHoriz
.
Differences on vertical coordinate values (ie. z or elev) between
this and other
must be within toleranceVert
.
Tolerance values must be positive (>= 0.0).
Implementation
@override
bool equals3D(
Geometry other, {
double toleranceHoriz = defaultEpsilon,
double toleranceVert = defaultEpsilon,
}) =>
other is Point &&
!isEmptyByGeometry &&
!other.isEmptyByGeometry &&
position.equals3D(
other.position,
toleranceHoriz: toleranceHoriz,
toleranceVert: toleranceVert,
);