/// <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)
 {
 }
예제 #2
0
 /// <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)
 {
 }
예제 #3
0
 /// <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)
 {
 }