Class GlyphPolygon
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
outerVector2[]The outside, counter-clockwise, without the first corner repeated.
holesIEnumerable<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
Outer
The outside, counter-clockwise.
public IReadOnlyList<Vector2> Outer { get; }