Skip to content

Commit

Permalink
Side: Rename isHorizontal/isVertical to isLeftRight/isTopBottom
Browse files Browse the repository at this point in the history
  • Loading branch information
reportmill committed Oct 19, 2021
1 parent 9f50f6b commit e67bad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/snap/geom/Side.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public Pos getPos()
}

/**
* Returns whether side is horizontal (LEFT or RIGHT).
* Returns whether side is LEFT or RIGHT.
*/
public boolean isHorizontal() { return this==LEFT || this==RIGHT; }
public boolean isLeftOrRight() { return this==LEFT || this==RIGHT; }

/**
* Returns whether side is vertical (TOP or BOTTOM).
* Returns whether side is TOP or BOTTOM.
*/
public boolean isVertical() { return this==TOP || this==BOTTOM; }
public boolean isTopOrBottom() { return this==TOP || this==BOTTOM; }
}

0 comments on commit e67bad5

Please sign in to comment.