Class Figure
- Namespace
- HelixToolkit.SharpDX.Core2D
- Assembly
- HelixToolkit.SharpDX.dll
public class Figure
- Inheritance
-
Figure
- Inherited Members
Constructors
Figure(Vector2, bool, bool)
Initializes a new instance of the Figure class.
public Figure(Vector2 startPoint, bool filled, bool closed)
Parameters
startPointVector2The start point.
filledboolif set to
true[filled].closedboolif set to
true[closed].
Properties
Closed
Gets or sets a value indicating whether this Figure is closed.
public bool Closed { get; }
Property Value
- bool
trueif closed; otherwise,false.
Filled
Gets or sets a value indicating whether this Figure is filled.
public bool Filled { get; }
Property Value
- bool
trueif filled; otherwise,false.
StartPoint
Gets or sets the start point.
public Vector2 StartPoint { get; }
Property Value
- Vector2
The start point.
Methods
AddSegment(ISegment, bool, bool)
Adds the segment.
public void AddSegment(ISegment segment, bool isStroked = true, bool isSmoothJoined = true)
Parameters
segmentISegmentThe segment.
isStrokedboolif set to
true[is stroked].isSmoothJoinedboolif set to
true[is smooth joined].
Create(GeometrySink)
Creates the specified sink.
public void Create(GeometrySink sink)
Parameters
sinkGeometrySinkThe sink.