Java Cube cubeTextureFace(float x0, float y0, float x1, float y1)

Here you can find the source of cubeTextureFace(float x0, float y0, float x1, float y1)

Description

cube Texture Face

License

Open Source License

Declaration

public static float[] cubeTextureFace(float x0, float y0, float x1, float y1) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static float[] cubeTextureFace(float x0, float y0, float x1, float y1) {
        return new float[] { x0, y0, x1, y0, x1, y1, x0, y1 };
    }// w w  w  .ja v a2s.  c  o m

    public static float[] cubeTextureFace(float[] coords) {
        float x0 = coords[0];
        float y0 = coords[1];
        float x1 = coords[2];
        float y1 = coords[3];
        return new float[] { x0, y0, x1, y0, x1, y1, x0, y1 };
    }
}

Related

  1. cube(int value)
  2. cube2rect(byte[][][] cube)
  3. cubed(final int input)
  4. cubeIntersectsSphere(int x1, int y1, int z1, int x2, int y2, int z2, int sX, int sY, int sZ, int radius)
  5. cubeTextureArray(float x0, float y0, float x1, float y1)
  6. cubeToBounds(float[] target, float x, float y, float z, float w, float d, float h)
  7. cubeVertexArray(float x, float y, float z, float size)