equalInZ method

bool equalInZ(
  1. Coordinate c,
  2. double tolerance
)

Tests if another coordinate has the same value for Z, within a tolerance.

@param c a coordinate @param tolerance the tolerance value @return true if the Z ordinates are within the given tolerance

Implementation

bool equalInZ(Coordinate c, double tolerance) {
  return NumberUtils.equalsWithTolerance(this.getZ(), c.getZ(), tolerance);
}