Esempio n. 1
0
 public static PolygonDrawable GetOrCreatePolygonDrawable(Polygon polygon)
 {
     return _polygons.GetOrAdd(polygon, p => new PolygonDrawable(p));
 }
Esempio n. 2
0
        public PolygonDrawable(Polygon polygon)
        {
            if (polygon == null) { throw new ArgumentNullException("polygon"); }

            Polygon = polygon;
        }
Esempio n. 3
0
 public static PolygonShape CreatePolygonShape(Polygon polygon, Scalar gridSpacing)
 {
     return new PolygonShape(polygon.Vertices.ToArray(), gridSpacing);
 }