Polygon2DTests NewPolygon Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void NewPolygon()
Examples

[Test, CloseAfterFirstFrame]
public void NewPolygon()
{
    var polygon = new Polygon2D(Rectangle.One, Color.White);
    polygon.Points.AddRange(new[] { Vector2D.Zero, Vector2D.One, Vector2D.UnitY });
See Also