public ISquare ToSquare() { ISquare square = new AGSSquare (new PointF (BottomLeft.X, BottomLeft.Y), new PointF (BottomRight.X, BottomRight.Y), new PointF (TopLeft.X, TopLeft.Y), new PointF (TopRight.X, TopRight.Y)); if (square.BottomLeft.X > square.BottomRight.X) square = square.FlipHorizontal(); return square; }
public ISquare ToSquare() { ISquare square = new AGSSquare(new PointF(BottomLeft.X, BottomLeft.Y), new PointF(BottomRight.X, BottomRight.Y), new PointF(TopLeft.X, TopLeft.Y), new PointF(TopRight.X, TopRight.Y)); if (square.BottomLeft.X > square.BottomRight.X) { square = square.FlipHorizontal(); } return(square); }