todo note

pull/10/head
Evan Hemsley 2019-12-01 23:17:42 -08:00
parent e798c2a4ff
commit 1d9c523cb2
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ namespace MoonTools.Core.Bonk
public IEnumerable<Position2D> Vertices { get { return vertices == null ? Enumerable.Empty<Position2D>() : vertices; } }
// vertices are local to the origin
public Polygon(params Position2D[] vertices)
public Polygon(params Position2D[] vertices) // TODO: remove this, params is bad because it allocates an array
{
this.vertices = ImmutableArray.Create<Position2D>(vertices);
}