src/main/java/de/blau/android/util/Coordinates.java
/**
     * Convert the coordinates from a list of Nodes to an array of screen coordinates
     * 
     * @param width screen width
     * @param height screen height
     * @param box current ViewBox
     * @param nodes the List of Nodes
     * @return an array of Coordinates
     */
Convert the coordinates from a list of Nodes to an array of screen coordinates


Convert the coordinates from a list of Nodes to an array of screen coordinates
@NonNull
    public static Coordinates[] nodeListToCoordinateArray(int width, int height, @NonNull ViewBox box, @NonNull List<Node> nodes) {
        int size = nodes.size();
        Coordinates[] points = new Coordinates[size];
        for (int i = 0; i < size; i++) {
            points[i] = nodeToCoordinates(width, height, box, nodes.get(i));
        }
        return points;
    }
@ NonNull public static Coordinates [ ] nodeListToCoordinateArray ( int width , int height , @ NonNull ViewBox box , @ NonNull List < Node > nodes ) { int size = nodes . size ( ) ; Coordinates [ ] points = new Coordinates [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { points [ i ] = nodeToCoordinates ( width , height , box , nodes . get ( i ) ) ; } return points ; }
Convert the coordinates from a list of Nodes to an array of screen coordinates
Convert the coordinates from a list of Nodes to an array of screen coordinates
// loop over all nodes