private static bool IsCoplanar([NotNull] SegmentsPlane segmentsPlane,
                                       [NotNull] IFeature planarFeature,
                                       double coplanarityTolerance,
                                       out double maximumOffset)
        {
            maximumOffset = GetMaximumOffset(segmentsPlane);
            if (maximumOffset <= coplanarityTolerance)
            {
                return(true);
            }

            var sref = Assert.NotNull(DatasetUtils.GetSpatialReference(planarFeature));

            var xyResolution = SpatialReferenceUtils.GetXyResolution(sref);
            var zResolution  = SpatialReferenceUtils.GetZResolution(sref);

            return(maximumOffset <= GeomUtils.AdjustCoplanarityTolerance(
                       segmentsPlane.Plane, coplanarityTolerance, zResolution,
                       xyResolution));
        }