Examples of VertexContainer


Examples of nexus.view.structs.VertexContainer

    return this.faces[i];
  }
 
  public VertexContainer makeFace(int i) {
    if (i == index.TOP.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(new Vector3(block.a.x, block.b.y, block.a.z), block.b));
    } else if (i == index.BOTTOM.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(block.a, new Vector3(block.b.x, block.a.y, block.b.z)));
    } else if (i == index.RIGHT.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(new Vector3(block.b.x, block.a.y, block.a.z), block.b));
    } else if (i == index.LEFT.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(block.a, new Vector3(block.a.x, block.b.y, block.b.z)));
    } else if (i == index.NEAR.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(block.a, new Vector3(block.b.x, block.b.y, block.a.z)));
    } else if (i == index.FAR.ordinal()) {
      return new VertexContainer(Planes.makeQuad2f(new Vector3(block.a.x, block.a.y, block.b.z), block.b));
    } else {
      throw new IllegalArgumentException(i + " is out of range");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.