private boolean checkHaworthAlignment(Point2d[] points) {
        
        for (int i = 0; i < points.length; i++) {
            Point2d curr = points[i];
            Point2d next = points[(i+1) % points.length];
            
            double deltaY = curr.y - next.y;
            
            if (Math.abs(deltaY) < CARDINALITY_THRESHOLD)
                return true;
        }
        
        return false;
    }
private boolean checkHaworthAlignment ( Point2d [ ] points ) { for ( int i = 0 ; i < points . length ; i ++ ) { Point2d curr = points [ i ] ; Point2d next = points [ ( i + 1 ) % points . length ] ; double deltaY = curr . y - next . y ; if ( Math . abs ( deltaY ) < CARDINALITY_THRESHOLD ) return true ; } return false ; }
Ensures at least one cyclic bond is horizontal.

@param points the points of atoms in the ring
@return whether the Haworth alignment is correct