@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final ViewOrientation that = (ViewOrientation) o;
        return rotateDegree == that.rotateDegree && flipHorizontal == that.flipHorizontal;
    }
returns true if this orientation would mean that width and height are switched compared to a "normal" orientation
main/src/main/java/cgeo/geocaching/utils/ViewOrientation.java