private static bool HasNonLinearSegments([NotNull] ISegmentCollection segments) { bool result = false; segments.HasNonLinearSegments(ref result); return(result); }