Java Utililty Methods Cube

List of utility methods to do Cube

Description

The list of methods to do Cube are organized into topic(s).

Method

float[]cubeVertexArray(float x, float y, float z, float size)
Calculate a GL_QUAD compatible representation of a given cube.
float[][][] cube = createCubeFaces(createCubeVertices(x, y, z, size));
float[] result = new float[6 * 4 * 3];
for (int f = 0; f < 6; f++) {
    for (int v = 0; v < 4; v++) {
        for (int c = 0; c < 3; c++) {
            result[3 * 4 * f + 3 * v + c] = cube[f][v][c];
return result;