Commit a4fc2576 authored by Sergio Emanuel Rodriguez Rivera's avatar Sergio Emanuel Rodriguez Rivera
Browse files

updated GraphicsAndWindowsTest Javadocs

parent 612904d7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -235,7 +235,14 @@ public class readFile {
                vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3],
                vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3]);
    }

    /**
     * Generates a specified number of random vertices within a 3D space, each represented by x, y, and z coordinates.
     * The coordinates are generated within a bounded range [0, 30) and stored in a global float array. This method
     * fills the {@code vertices} array with float values where every set of three floats represents the coordinates
     * of a single vertex.
     *
     * @param numVertices The number of vertices to generate. This determines the size of the {@code vertices} array.
     */
    public static void generateRandomVertices(int numVertices) {
        float range = 30;
        Random random = new Random();