Package com.googlecode.gwtgl.example.client.util.math

Examples of com.googlecode.gwtgl.example.client.util.math.Vector3f


  }

  private static float[] createVertexNormalsArray() {
    // throw new UnsupportedOperationException("not implemented yet");
    List<Vector3f> normals = new ArrayList<Vector3f>(24);
    Vector3f front = vec(0, 0, 1);
    Vector3f back = vec(0, 0, -1);
    Vector3f left = vec(-1, 0, 0);
    Vector3f right = vec(1, 0, 0);
    Vector3f top = vec(0, 1, 0);
    Vector3f bottom = vec(0, -1, 0);
    normals.add(front);
    normals.add(front);
    normals.add(front);
    normals.add(front);
    normals.add(front);
View Full Code Here


    List<Float> vertexNormals = flattenVector3fList(normals);
    return floatListToFloatArray(vertexNormals);
  }

  private static Vector3f vec(float x, float y, float z) {
    return new Vector3f(x, y, z);
  }
View Full Code Here

TOP

Related Classes of com.googlecode.gwtgl.example.client.util.math.Vector3f

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.