예제 #1
0
파일: FlatShape4D.cs 프로젝트: 15831944/WW
        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;
            }
        }
예제 #2
0
파일: FlatShape4D.cs 프로젝트: 15831944/WW
 public FlatShape4D(FillableShape2D shape)
     : this(shape, Matrix4D.Identity)
 {
 }
예제 #3
0
파일: FlatShape4D.cs 프로젝트: 15831944/WW
 public FlatShape4D(IShape2D shape, Matrix4D transform, bool filled)
     : this(FillableShape2D.ToFillableShape(shape, filled), transform)
 {
 }