Skip to content

Commit

Permalink
Update RectangleHexArea.java
Browse files Browse the repository at this point in the history
Fixing misformed HTML
  • Loading branch information
HammerGS authored Oct 2, 2024
1 parent 52e9d45 commit db3216f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions megamek/src/megamek/common/hexarea/RectangleHexArea.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ public class RectangleHexArea extends AbstractHexArea {
private final int y2;

/**
* Creates a rectangle shape. The rectangle includes the corner coordinates. The coordinates do not have to be sorted, i.e. x1 > x2 and
* x1 < x2 have the same result. When x1 = x2 and/or y1 = y2, the rectangle consists of a single line or single hex.
* Creates a rectangle shape. The rectangle includes the corner coordinates. The coordinates do not have to be sorted, i.e. x1 &gt; x2 and
* x1 &lt; x2 have the same result. When x1 = x2 and/or y1 = y2, the rectangle consists of a single line or single hex.
*
* @param x1 The first x corner coordinate
* @param x2 The second x corner coordinate
* @param y1 The first y corner coordinate
* @param y2 The second y corner coordinate
*/

public RectangleHexArea(int x1, int y1, int x2, int y2) {
this.x1 = Math.min(x1, x2);
this.x2 = Math.max(x1, x2);
Expand Down

0 comments on commit db3216f

Please sign in to comment.