/// <summary> /// Initializes a new instance of the <see cref="InternalPath" /> class. /// </summary> /// <param name="segment">The segment.</param> /// <param name="isClosedPath">if set to <c>true</c> [is closed path].</param> internal InternalPath(ILineSegment segment, bool isClosedPath) : this(segment?.Flatten() ?? Enumerable.Empty <PointF>(), isClosedPath) { }
/// <summary> /// Initializes a new instance of the <see cref="InternalPath" /> class. /// </summary> /// <param name="segment">The segment.</param> /// <param name="isClosedPath">if set to <c>true</c> [is closed path].</param> internal InternalPath(ILineSegment segment, bool isClosedPath) : this(segment.Flatten(), isClosedPath) { }
/// <summary> /// Initializes a new instance of the <see cref="InternalPath" /> class. /// </summary> /// <param name="segment">The segment.</param> /// <param name="isClosedPath">if set to <c>true</c> [is closed path].</param> internal InternalPath(ILineSegment segment, bool isClosedPath) : this(segment?.Flatten() ?? ImmutableArray <Vector2> .Empty, isClosedPath) { }