Struct CubicBezier.SubcurveNode
A node in the adaptive subdivision linked list used by ToQuadratics(Span<QuadraticBezier>, NFloat, out int). Each node holds a cubic segment, its quadratic approximation, and a flatness error measure.
public struct CubicBezier.SubcurveNode
- Inherited Members
Constructors
SubcurveNode(CubicBezier, ushort)
Initializes a new node representing a quadratic approximation of a cubic Bézier segment in a linked list.
public SubcurveNode(CubicBezier segment, ushort nextIndex = 0)
Parameters
segmentCubicBezierThe original cubic Bézier segment.
nextIndexushortIndex of the next node in the chain. Use 0 if this is the last node.
Fields
NextIndex
Index of the next node in the linked chain; 0 indicates this is the last node.
public ushort NextIndex
Field Value
Precision
The maximum perpendicular deviation of the approximation from the original cubic.
public NFloat Precision
Field Value
QuadraticBezierApproximation
The quadratic Bézier approximation of Segment.
public QuadraticBezier QuadraticBezierApproximation
Field Value
Segment
The cubic Bézier segment represented by this node.
public CubicBezier Segment