Exemplo n.º 1
0
        public FlatShape4D(FillableShape2D shape, Matrix4D transform)
        {
            this.fillableShape2D_0 = shape;
            this.matrix4D_0        = transform;
            Bounds2D bounds = ShapeTool.GetBounds((IShape2D)shape);

            if (bounds.Initialized)
            {
                this.point2D_0 = new Point2D[4]
                {
                    bounds.Corner1,
                    new Point2D(bounds.Corner2.X, bounds.Corner1.Y),
                    bounds.Corner2,
                    new Point2D(bounds.Corner1.X, bounds.Corner2.Y)
                }
            }
            ;
            else
            {
                this.point2D_0 = (Point2D[])null;
            }
        }
Exemplo n.º 2
0
 public FlatShape4D(FillableShape2D shape)
     : this(shape, Matrix4D.Identity)
 {
 }
Exemplo n.º 3
0
 public FlatShape4D(IShape2D shape, Matrix4D transform, bool filled)
     : this(FillableShape2D.ToFillableShape(shape, filled), transform)
 {
 }