csharp
public readonly record struct EdgeOne straight edge of a flattened contour.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Source is what keeps flattening from inventing corners. A curve cut into twenty chords has nineteen joins that turn by a few degrees each, and every one of them looks exactly like a shallow corner to anything reading the flattened edges alone. Carrying the segment each chord came from means a corner can be looked for where the outline actually has one — at the joins between its own segments.
Fields and properties (3)
public Vector2 FromWhere it starts.
public Vector2 ToWhere it ends.
public int SourceWhich of the outline's segments this is a piece of.
Methods (1)
public Edge(Vector2 From, Vector2 To, int Source)One straight edge of a flattened contour.
Used by (3)
- EdgeColoringVixen.Ui.Text
- GlyphRasterizerVixen.Ui.Text
- OutlineFlattenerVixen.Ui.Text