equalsNorm method

bool equalsNorm(
  1. Geometry? g
)

Tests whether two geometries are exactly equal in their normalized forms. This is a convenience method which creates normalized versions of both geometries before computing {@link #equalsExact(Geometry)}.

This method is relatively expensive to compute. For maximum performance, the client should instead perform normalization on the individual geometries at an appropriate point during processing.

@param g a Geometry @return true if the input geometries are exactly equal in their normalized form

Implementation

bool equalsNorm(Geometry? g) {
  if (g == null) return false;
  return norm().equalsExactGeom(g.norm());
}