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(); }
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(); }
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(); }