snowkit/differ

Allow arbitrary points in Polygon

Closed this issue · 2 comments

Polygon.create([a1, b1, a2, b2...]) and another name for perfect polygon types by number of sides would make more sense.

Triangle.create() could be nice too.

Or maybe keeping what we have now and adding Polygon.fromList([a1, b1, a2, b2...])

I wasn't aware of new Polygon() so i updated the samples with one custom shape and added a triangle type in Polygon.