Table of Contents

Struct CubicBezier.SubcurveNode

Namespace
Xui.Core.Curves2D
Assembly
Xui.Core.dll

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

segment CubicBezier

The original cubic Bézier segment.

nextIndex ushort

Index 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

ushort

Precision

The maximum perpendicular deviation of the approximation from the original cubic.

public NFloat Precision

Field Value

NFloat

QuadraticBezierApproximation

The quadratic Bézier approximation of Segment.

public QuadraticBezier QuadraticBezierApproximation

Field Value

QuadraticBezier

Segment

The cubic Bézier segment represented by this node.

public CubicBezier Segment

Field Value

CubicBezier