public static PolygonDrawable GetOrCreatePolygonDrawable(Polygon polygon) { return _polygons.GetOrAdd(polygon, p => new PolygonDrawable(p)); }
public PolygonDrawable(Polygon polygon) { if (polygon == null) { throw new ArgumentNullException("polygon"); } Polygon = polygon; }
public static PolygonShape CreatePolygonShape(Polygon polygon, Scalar gridSpacing) { return new PolygonShape(polygon.Vertices.ToArray(), gridSpacing); }