Table of Contents

Class GlyphPolygon

Namespace
Stride.CommunityToolkit.Rendering.Text
Assembly
Stride.CommunityToolkit.dll

One filled piece of a GlyphShape: an outside polygon and the holes in it.

public sealed class GlyphPolygon
Inheritance
GlyphPolygon

Constructors

GlyphPolygon(Vector2[], IEnumerable<Vector2[]>)

Creates a polygon with holes.

public GlyphPolygon(Vector2[] outer, IEnumerable<Vector2[]> holes)

Parameters

outer Vector2[]

The outside, counter-clockwise, without the first corner repeated.

holes IEnumerable<Vector2[]>

The holes, clockwise, each without the first corner repeated.

Exceptions

ArgumentNullException

The outer polygon or the holes are null.

Properties

Holes

The holes, clockwise.

public IReadOnlyList<IReadOnlyList<Vector2>> Holes { get; }

Property Value

IReadOnlyList<IReadOnlyList<Vector2>>

Outer

The outside, counter-clockwise.

public IReadOnlyList<Vector2> Outer { get; }

Property Value

IReadOnlyList<Vector2>