The list of methods to do Cube are organized into topic(s).
byte[][]
cube2rect(byte[][][] cube) cuberect
int zSize = cube.length;
byte[][] rect = new byte[zSize][cube[0].length * cube[0][0].length];
for (int z = 0; z < zSize; z++) {
rect[z] = square2array(cube[z]);
return rect;
boolean
cubeIntersectsSphere(int x1, int y1, int z1, int x2, int y2, int z2, int sX, int sY, int sZ, int radius) Checks if the cube intersects the sphere.
double d = radius * radius;
if (sX < x1) {
d -= Math.pow(sX - x1, 2);
} else if (sX > x2) {
d -= Math.pow(sX - x2, 2);
if (sY < y1) {
d -= Math.pow(sY - y1, 2);
...
float[]
cubeTextureArray(float x0, float y0, float x1, float y1) A GL_QUAD compatible array of texture coordinates.
float[] tex = new float[] { x0, y0, x1, y0, x1, y1, x0, y1 };
return makeBigArray(tex, 6);
float[]
cubeTextureFace(float x0, float y0, float x1, float y1) cube Texture Face
return new float[] { x0, y0, x1, y0, x1, y1, x0, y1 };