public sealed class PathShape : Shape
Represents a collection of potentially non-consecutive segments.

Properties

ArcCount

#
Gets the total number of arc segments.
public int ArcCount { get; }

BezierCount

#
Gets the total number of bezier segments.
public int BezierCount { get; }

Bounds

#
Gets the bounding box for this shape.
public override Box Bounds { get; }
Shape.Bounds

Empty

#
Gets the empty path with zero width.
public static PathShape Empty { get; }

IsClosed

#
Gets whether this path is closed. Paths that are nearly closed are also considered truly closed.
public bool IsClosed { get; }

LineCount

#
Gets the total number of line segments.
public int LineCount { get; }

SegmentCount

#
Gets the total number of segments.
public int SegmentCount { get; }

Width

#
Gets the width of this path.
public float Width { get; }

Methods

AddSegment

#
Add an arc segment to this path.
public PathShape AddSegment(
arc
Arc segment to add.
)
Extended path.

AddSegment

#
Add a bezier segment to this path.
public PathShape AddSegment(
bezier
Line segment to add.
)
Extended path.

AddSegment

#
Add a circle segment to this path.
public PathShape AddSegment(
circle
Circle segment to add.
)
Extended path.

AddSegment

#
Add a line segment to this path.
public PathShape AddSegment(
line
Line segment to add.
)
Extended path.

Close

#
Close this path with a linear segment.
public PathShape Close()
Closed path, or empty path if this path is empty.

CreateEmpty

#
Create an empty path shape with a specific width.
public static PathShape CreateEmpty(
width
Width of path.
)
None path.

CreateFromSegments

#
Create a path from individual segments.
public static PathShape CreateFromSegments(
width,
Path width.
params object[]
segments
Array of segments. May only contain LineF, ArcsF and BezierF instances.
)
Path made up of all segments.

IsCoincident

#
Test whether a specific coordinate is coincident with this obstacle.
public override bool IsCoincident()
True if point is coincident.

ModifyWidth

#
Modify the width of this shape.
public PathShape ModifyWidth(
width
New width.
)
Modified path.

Overlap

#
Determine the overlap between this shape and a box.
public override Overlap Overlap(
box
Box.
)
Overlap topology.
Shape.Overlap

SegmentEnd

#
Gets the end point of the segment at the given index.
public PointF SegmentEnd(
index
Tier index.
)
End point of segment.

SegmentStart

#
Gets the start point of the segment at the given index.
public PointF SegmentStart(
index
Tier index.
)
Start point of segment.