Пример #1
0
        public virtual void Scale(float width, float height)
        {
            PolygonF scalePly = PolygonF.Scale(this, width, height);

            this.Clear();
            this._pnts.AddRange(scalePly._pnts.ToArray());
            if (this._preCalcBBox)
            {
                this.UpdateMinMax(this._pnts);
            }
            scalePly.Clear();
        }
Пример #2
0
        public virtual void RotateAtCentroid(float degrees)
        {
            PolygonF rotatePly = PolygonF.Rotate(this, degrees, this.Centroid);

            this.Clear();
            this._pnts.AddRange(rotatePly._pnts.ToArray());
            if (this._preCalcBBox)
            {
                this.UpdateMinMax(this._pnts);
            }
            rotatePly.Clear();
        }
Пример #3
0
        public virtual void Offset(float x, float y)
        {
            PolygonF offsetPly = PolygonF.Offset(this, x, y);

            this.Clear();
            this._pnts.AddRange(offsetPly._pnts.ToArray());
            if (this._preCalcBBox)
            {
                this.UpdateMinMax(this._pnts);
            }
            offsetPly.Clear();
        }