private void prepareHeight() {
        double min = points.get(0).y;
        double max = points.get(0).y;

        for (int i = 1; i < points.size(); i++) {
            VoronoiPoint p1 = points.get(i);
            if (min > p1.y)
                min = p1.y;
            if (max < p1.y)
                max = p1.y;

        }

        height = max - min;
    }
Voronoi region allows to work with each diagram element

Created by quatja
vorolay/src/main/java/quatja/com/vorolay/diagram/VoronoiRegion.java