csharp
public readonly record struct OutlineSegmentOne segment of an outline: a verb and the points it needs.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
One fixed-size struct per verb rather than a verb array beside a point array — the same decision, for the same reason, as PathBuilder in Vixen.Ui: the split form is smaller and needs two cursors to walk and two ranges to name.
Fields and properties (7)
public OutlineVerb VerbWhich kind.
public float X0First point's x — the end for a move or line, the first control otherwise.
public float Y0First point's y.
public float X1Second point's x. The end of a quadratic, the second control of a cubic.
public float Y1Second point's y.
public float X2Third point's x. The end of a cubic.
public float Y2Third point's y.
Methods (1)
public OutlineSegment(OutlineVerb Verb, float X0, float Y0, float X1 = 0, float Y1 = 0, float X2 = 0, float Y2 = 0)One segment of an outline: a verb and the points it needs.
Used by (12)
- DistanceFieldTestsVixen.Ui.Text.Tests
- EdgeColoringVixen.Ui.Text
- GlyphAtlasTestsVixen.Ui.Text.Tests
- GlyphOutlineVixen.Ui.Text
- GlyphOutlineSourceVixen.Ui.Text
- IconAtlasVixen.Ui
- OutlineBuilderVixen.Ui.Text
- OutlineFlattenerVixen.Ui.Text
- OutlineTestsVixen.Ui.Text.Tests
- RasterizerTestsVixen.Ui.Text.Tests
- VariationConformanceTestsVixen.Ui.Text.Tests
- FontAtlasViewVixen.Editor.AssetEditors