Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
        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);
        }